-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: fix request canceler leak on connection close #62305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 9389b06) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/523296. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Alexander Yastrebov: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 2: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Gopher Robot: Patch Set 2: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
9389b06
to
4969358
Compare
This PR (HEAD: 4969358) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/523296. Important tips:
|
Message from Alexander Yastrebov: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
4969358
to
dcbcf7a
Compare
This PR (HEAD: dcbcf7a) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/523296. Important tips:
|
Message from Alexander Yastrebov: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Alexander Yastrebov: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 4: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-11-06T21:44:43Z","revision":"3a74d0a3b6093c4978adce208273cc78eef81469"} Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 4: Auto-Submit+1 Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results): FAILURE
error: failed to run "test golang.org/x/tools module": exit status 1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
dcbcf7a
to
a56811e
Compare
This PR (HEAD: a56811e) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/523296. Important tips:
|
Message from Damien Neil: Patch Set 5: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 5: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-11-10T17:52:03Z","revision":"4ac729a7690d8ed3803f816b6302cd987ba276d1"} Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 5: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 5: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 5: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Heschi Kreinick: Patch Set 5: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Carlos Amedee: Patch Set 5: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
writeLoop goroutine closes persistConn closech in case of request body write error which in turn finishes readLoop without removing request canceler. Fixes golang#61708
a56811e
to
b74b905
Compare
This PR (HEAD: b74b905) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/523296. Important tips:
|
Message from Alexander Yastrebov: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 6: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-03-18T16:18:37Z","revision":"ead2956affec451a4c19013e89db255b3647b693"} Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Damien Neil: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/523296. |
writeLoop goroutine closes persistConn closech in case of request body write error which in turn finishes readLoop without removing request canceler. Fixes #61708 Change-Id: Ib7c832a91b49bc7888a35a4fd2bd692236c04f86 GitHub-Last-Rev: b74b905 GitHub-Pull-Request: #62305 Reviewed-on: https://go-review.googlesource.com/c/go/+/523296 Reviewed-by: Carlos Amedee <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]>
This PR is being closed because golang.org/cl/523296 has been merged. |
writeLoop goroutine closes persistConn closech in case of request body
write error which in turn finishes readLoop without removing request canceler.
Fixes #61708