You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get http://127.0.0.1:2/: context deadline exceeded
true
Works like this on latest (go 1.8.*)
What did you see instead?
Get http://127.0.0.1:44773/: net/http: request canceled
false
This test is kinda hacky b/c .Shutdown() and .Close() aren't there on Go 1.7.
The point is: r.Context() is never canceled on server's side once client disconnects.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?go version go1.7.4 linux/amd64
What operating system and processor architecture are you using (
go env
)?Arch Linux
What did you do?
Stumbled upon it on failing tests. Here's a snippet:
https://play.golang.org/p/v4ij4Elrqa
What did you expect to see?
Works like this on latest (go 1.8.*)
What did you see instead?
This test is kinda hacky b/c
.Shutdown()
and.Close()
aren't there on Go 1.7.The point is:
r.Context()
is never canceled on server's side once client disconnects.The text was updated successfully, but these errors were encountered: