-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: TestIssue3595 failure with "write: broken pipe" #51104
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
Comments
Just looking at the scenario this is testing, I suspect that it is a real bug in the My hypothesis is that the test is racing between filling up the server's input buffer and receiving its error response. |
There is another issue here that seems to be closely related. Running the test locally, I noticed that it always takes a little over 500ms. Most of that time is spent waiting on the That server is itself stuck waiting on the following goroutine:
which was the very delay added for #3595. 🤔 |
That delay occurs even if the client closes the request body immediately upon receiving the server's response, which seems like a bug to me (but perhaps a separate one). |
Indeed, I can replicate this failure mode by commenting out the (The latter scenario was described in #3595 (comment).) |
Change https://go.dev/cl/527196 mentions this issue: |
greplogs --dashboard -md -l -e 'FAIL: TestIssue3595 ' --since=2021-01-01
2022-02-08T23:38:05-0b7e586/freebsd-amd64-race
The text was updated successfully, but these errors were encountered: