You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some more debugging, I've narrowed it down to an external package I'm using which seems to mess with net/http. I'm not sure net/http should panic like that though, I'll figure more of this with the related package.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, it reproduces with all the versions I tried, which include 1.20.5, 1.20.4 and 1.19.10
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm running an HTTP server, read the request and respond to the request. The moment my handler exits. net/http panics.
It still writes the response back without issue, but the server panics after that and dies; it flushes the full response, has issues after that.
I'm having trouble reproducing the issue and debugging it properly, and can't find anything in my code that would relate to this.
The server is using
ListenAndServe
, like thisWhat did you expect to see?
My server staying alive, or maybe the stack trace pointing at something I am doing wrong.
What did you see instead?
Similar stack traces on all versions
The text was updated successfully, but these errors were encountered: