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
net/http: Request.Body locking should be interruptable on Close #7121
Comments
This issue was updated by revision 35710ee. R=golang-codereviews, gobot, dsymonds CC=golang-codereviews https://golang.org/cl/51750044 |
Are there any plans to fix this ? When streaming data from the client, this makes it impossible to stop the streaming from the server side. |
I had forgotten about this. I put it on my list to investigate for Go 1.8. |
@bradfitz seems like it passes now, unless am missing something. Running on tip $ go version
go version devel +b53f0f8 Sat Feb 4 16:46:11 2017 +0000 darwin/amd64 with the code you provided in the bug report ie also at https://github.com/odeke-em/bugs/blob/master/golang/7121/issue_test.go with just $ go test -v
=== RUN TestRequestBodyCloseDoesntBlock
--- PASS: TestRequestBodyCloseDoesntBlock (0.50s)
issue_test.go:54: Read error = read tcp 127.0.0.1:60113->127.0.0.1:60114: i/o timeout
PASS
ok _/Users/emmanuelodeke/Desktop/openSrc/bugs/golang/7121 0.513s |
CL https://golang.org/cl/42149 mentions this issue. |
I have traced back the fixer to be commit faf882d or CL https://go-review.googlesource.com/c/31173/. Am finna enable the previously skipped test with a CL in a few. |
The text was updated successfully, but these errors were encountered: