m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.95k stars 449 forks source link

Temp file remains after large sized file transfer #347

Closed HelloKS closed 6 months ago

HelloKS commented 7 months ago

Hello,

I found unusual big-sized neko container after using file transfer feature (NEKO_FILE_TRANSFER_ENABLED flag).

It seems neko is writing to temp files for some large-sized file in /tmp directory (named multipart-[random numbers].[ext]) but does not remove these even after transfer completes.

m1k1o commented 6 months ago

Seems like r.MultipartForm.RemoveAll() should fix it, thanks for noticing.