Repository navigation
transport: add multiplexed conns to the idle pool before delivery - #555
Open
lidongze1002 wants to merge 1 commit into
Open
lidongze1002 wants to merge 1 commit into
lidongze1002 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #527.
Ports the two upstream changes the report tracks:
transport.go, upstreamgolang/go@88b2ccb).dialConnFordelivered analt(HTTP/2 or HTTP/3) connection to the waiting request first and only then added it to the idle pool, so a concurrentCloseIdleConnectionscould run in that window and miss it. The connection is now added to the pool beforetryDeliver; non-shareable connections are still added only when delivery did not take them.internal/http2/transport.go,internal/http3/request_writer.go,internal/netutil/addr.go, upstreamgolang/go@2117d7c). These usedidna.ToASCII, whilehttp.gousesidna.Lookup.ToASCII; they now use the same lookup profile, so HTTP/2 pool keys and HTTP/1 host normalization agree.Verification
go test .still has the pre-existing Windows-only failures (e.g.TestSetFilecompares the platform'sopenerror text to"no such file"); they are unrelated to these files.