-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
net/http: ResponseController panic #58237
Comments
this line cause panic, add If st.Body == nil maybe a choice to fix this. but I am not very sure. |
cc @neild |
Change https://go.dev/cl/464936 mentions this issue: |
…line test Requires CL 464936 For golang#58237
Check stream body is not nil in the handler to cover all callsites For golang/go#58237
Change https://go.dev/cl/465035 mentions this issue: |
Is there any further information that would be helpful for this issue? It can still be reproduced in Go 1.20.5, and prohibits the use of |
Check stream body is not nil in the handler to cover all callsites For golang/go#58237
…line test Requires CL 464936 For golang#58237
https://go.dev/cl/465035 is the reproducer. |
Check stream body is not nil in the handler to cover all callsites For golang/go#58237 Change-Id: Ibeb19f2597f12da71b8dfb73718e230b4b316d06 GitHub-Last-Rev: dc87bef GitHub-Pull-Request: #162 Reviewed-on: https://go-review.googlesource.com/c/net/+/464936 Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Run-TryBot: Damien Neil <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Damien Neil <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Commit-Queue: Bryan Mills <[email protected]>
https://go.dev/cl/464936 is in, so at this point I think it's just waiting on someone to re-run the bundler to import |
…line test Requires CL 464936 For golang#58237
…line test Requires CL 464936 For golang#58237
http2 bundle was updated by https://go-review.googlesource.com/c/go/+/534295 |
If I have understood correctly, I think the updated h2 bundle is in Go 1.21.3 (via e175f27), but I am afraid that I still see the problem with the original reproducer (https://go.dev/play/p/Alu2e-LdzqX?v=gotip):
|
I cloned the Go repo and built at e4f72f7, and this did not exhibit the problem:
(the So tip is fine; it just appears to be Go 1.21.3 that still exhibits the problem. |
…line test Requires CL 464936 For golang#58237
always on 1.21.4 reproducer: https://go.dev/play/p/Alu2e-LdzqX?v=gotip
|
The fix was merged to master by updating h2_bundle within https://go-review.googlesource.com/c/go/+/534295 for #63426 |
…line test Requires CL 464936 For golang#58237
…line test Requires CL 464936 For #58237 Change-Id: I007b61f0f216d759f8e5327d77affbd9e8f8ff23 GitHub-Last-Rev: 30a1090 GitHub-Pull-Request: #58282 Reviewed-on: https://go-review.googlesource.com/c/go/+/465035 Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
I'm going to close this as fixed for 1.22 / tip. |
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?
Run the program; https://go.dev/play/p/Alu2e-LdzqX?v=gotip
and then use curl to access it
curl -vkL https://127.0.0.1:56782/
What did you expect to see?
No panic, possibly an error
What did you see instead?
The text was updated successfully, but these errors were encountered: