regression: uploading large file when disk space is tight
since this commit :
increase upload temporary chunk file size from 1MB to 16MB
From: Stefan Bühler <firstname.lastname@example.org>
uploading a file in the same partition as the lighttpd temp folder requires more free space than before (filesize +16MB instead of filesize +1MB)
The use case is:
embedded board, 60MiB tmpfs on /tmp, flash memory read-only.
before this commit, I could upload a 50MiB file into /tmp/, after this commit, it fails, because it needs the file size + the size of the chunk (thus 66MiB).
Maybe the solution is to use a config parameter.
Updated by stbuehler over 6 years ago
- Target version set to 1.4.38
I think I got now what the problem is: the temp files allocated by lighttpd still are of the same size together, but during streaming the upload to a backend the backend might require space too, and lighttpd will only free a file after it is done with it, i.e. after "chunk size".
Then an upload will require file size + chunk size in total as you said.
Also available in: Atom