-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gin.Context Done() function does not work as expected #1452
Comments
Using |
if solved the problem, please close the issue |
The issue should be reopened. Currently the function is like: // Done returns a channel that's closed when work done on behalf of this
// context should be canceled. Done may return nil if this context can
// never be canceled. Successive calls to Done return the same value.
func (c *Context) Done() <-chan struct{} {
return nil
}
|
@lorencio1 please see #1690 |
merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to determine(in server-side) a request is cancelled from client. In the following code it take 5min even if we cancel the request from client to return
handleFunc
. But same code using thenet/http
package works properly.PS:
I used
go version go1.10.1 linux/amd64
And
gin
commit:a712f77
The text was updated successfully, but these errors were encountered: