x/net/http2: unexpected reuse of single connection #63196
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I downloaded 9M files using 100 goroutines from http2.transport.
What did you expect to see?
There are currently more than 100 active streams in http2. I thought the connection would be newly opened, but it didn't.
What did you see instead?
After checking the http2.transport connection pool, we are reusing a single connection.
The netstat -nap check shows that there is 1 connection, rx full, tx full a lot.
The following modifications improve performance by creating connections in units of 20 active streams.
As the number of active streams increases, http2 becomes slower and slower.
The text was updated successfully, but these errors were encountered: