-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: TestTransportRemovesH2ConnsAfterIdle/h2 failures #70515
Comments
Found new dashboard test flakes for:
2024-11-22 02:04 gotip-linux-amd64-longtest-noswissmap go@d524c954 net/http.TestTransportRemovesH2ConnsAfterIdle/h2 (log)
|
Found new dashboard test flakes for:
2024-11-22 03:48 gotip-linux-386-longtest go@b299e9a4 net/http.TestTransportRemovesH2ConnsAfterIdle/h2 (log)
|
Change https://go.dev/cl/631795 mentions this issue: |
This is caused by a bug introduced in https://go.dev/cl/625398: As of that CL, when a client connection encounters an error prior to the first request being sent on it, we fail that request. For example, if the server immediately closes a new connection before we have a chance to send a request, we treat that as a failure on the assumption that trying again will get the same result. (Previously, we'd say "oh, we don't have any usable connections", and retry on a new connection--which would probably fail again in the same way.) The bug is that when the connection idle timer races with the first request on a connection, this can result in that first request failing. This is unlikely to happen in the real world, since it requires a very short idle timer and a new connection which has somehow made it into the pool without being used. Even in tests, it requires some fairly unlucky timing to appear. |
Change https://go.dev/cl/631815 mentions this issue: |
Issue created automatically to collect these failures.
Example (log):
— watchflakes
The text was updated successfully, but these errors were encountered: