You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above trips the race detector due to ClientConn.idleTimer firing while the client connection is still being constructed. The race happens in ClientConn.closeIfIdle() when it tries to read from ClientConn.nextStreamID while it's being updated in
The text was updated successfully, but these errors were encountered:
cinchurge
changed the title
golang.org/x/net/http2: data race in Transport.newClientConn() when connection idle timeout is too low
x/net/http2: data race in Transport.newClientConn() when connection idle timeout is too low
Apr 10, 2024
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: