x/net/http2: low tcp segment utilization #38432
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
start an http2 echo server then write a response
What did you expect to see?
I'm expecting the response
Header Frame
DataFrame
andHeader Frame with EndStream
can encoding to the one TCP Segment but it's not :(What did you see instead?
one http2 response division into 3 TCP segments which means poor performance
the related codebase is the following https://github.com/golang/net/blob/master/http2/server.go#L2393-L2499
The underlying serveConn.wantWriteFrameCh should consider how to batching fetch
The text was updated successfully, but these errors were encountered: