x/net/http2: data race in Transport.newClientConn() when connection idle timeout is too low #66763
Labels
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
1.22.2
Output of
go env
in your module/workspace:What did you do?
Test code:
Run it via
What did you see happen?
The above trips the race detector due to
ClientConn.idleTimer
firing while the client connection is still being constructed. The race happens inClientConn.closeIfIdle()
when it tries to read fromClientConn.nextStreamID
while it's being updated inOutput of the test with race detection enabled:
What did you expect to see?
No race detected.
The text was updated successfully, but these errors were encountered: