x/net/http2: When using large FormFile under HTTP2 and TLS, /tmp will not be cleared. #48413
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
This is my code, please generate your own certificate
You can upload a large form using the following command.
curl -k -F 'test=@/path/to/large/file' https://localhost:8080
Note: The file must be large enough to exceed 32M for the following reasons: request form to large will create tmp to save.
go/src/mime/multipart/formdata.go
Line 92 in ec51703
What did you expect to see?
At the end of the HTTP request, files in /tmp will be destroyed.
What did you see instead?
Tmp file still exists.
The text was updated successfully, but these errors were encountered: