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
Uploaded a file of size > 10MiB through the web form on:
localhost:8080/case/1/
localhost:8080/case/2/
What did you see happen?
The handler Case1 closes the connection without sending any response - either through http.Error() or w.WriteHeader().
When the same file is uploaded, the Case2 handler returns the correct error response. It looks like the only difference is the call to ParseMultipartForm() before sending a reply.
What did you expect to see?
The Case1 handler should return an HTTP response with status code 200 or 500.
The text was updated successfully, but these errors were encountered:
see the above links, the connection is broken on a lower level because of full buffers.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Go version
go version go1.23.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/Td2zJWsHagm
Uploaded a file of size > 10MiB through the web form on:
localhost:8080/case/1/
localhost:8080/case/2/
What did you see happen?
The handler Case1 closes the connection without sending any response - either through
http.Error()
orw.WriteHeader()
.When the same file is uploaded, the Case2 handler returns the correct error response. It looks like the only difference is the call to
ParseMultipartForm()
before sending a reply.What did you expect to see?
The Case1 handler should return an HTTP response with status code 200 or 500.
The text was updated successfully, but these errors were encountered: