-
Notifications
You must be signed in to change notification settings - Fork 18.1k
net/http: empty responses with chunked transfer-encoding cause future requests to fail #8648
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
Labels
Milestone
Comments
Comment 2 by [email protected]: Updated server to close response body explicitly: http://play.golang.org/p/qqPRYcCvze Same problem persists. |
Will do. Kelsey, what I would do is write a test that reproduces it first (this would be useful by itself), and then trace through the server "life of a write" (search for that comment) path and see why it's happening. The fix is probably tiny but I won't know until I know what's happening. |
As far I can tell, this is a dup of issue #8534. The issue here isn't about chunked encoding or empty responses, but entirely about reuse of connections after a write error. But even with the fix to issue #8534, the client/server test programs in this bug won't do anything useful. Let me know if I missed something. Status changed to Duplicate. Merged into issue #8534. |
Just tried again with the latest version that includes this change and the problem persists. As I understand it, issue #8534 is about the server not handling write timeout properly. This bug is about the client returning broken http connections back to its pool without closing them. |
That was not clear at all from the initial subject and bug report. Could you try again to summarize the problem and provide code which demonstrates the problem? The server code you provided here is not useful. It's not clear what you're trying to tickle and is poking at too many things. I would file a new bug because this one is already too confused. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by eyakubovich:
The text was updated successfully, but these errors were encountered: