Bug #2803

client download file from lighttpd server, why /var/tmp will generates temporary file?

Added by hsiaoairplane about 3 years ago. Updated about 3 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Missing in 1.5.x:


Hi all,

I am using embedded device with lighttpd 1.4.45 + cgi module. The client downloads file from lighttpd server, then the CGI module will be called to send random data content from memory with the client specific file size. For example, if the client requests 100M file size, then the CGI program sends 100M contents out from memory.

However, I found that when the client downloads file, the /var/tmp will also generate total 100M files which are names with prefix "lighttpd-upload-". And it will deletes after the client downloads file complete. From the document, I know that this is used for file upload, not file download. So, why I download the file from lighttpd server, it will generate random file? Is it a bug?

Please note that I run this on embedded device, therefore, the RAM and Flash resource is limited.


Updated by gstrauss about 3 years ago

  • Status changed from New to Invalid
  • Target version deleted (1.4.x)

Please use the support forum to ask questions and do not file bugs to ask questions.

Nope, not a bug.
See Server_stream-response-bodyDetails
See also cgi.x-sendfile in Docs_ModCGI


Updated by hsiaoairplane about 3 years ago

Sorry, I read the doc but I did not notice this setting.
For avoids take credit on StackOverflow, I delete the post. But trust me, I just want share the knowledge to others.


Updated by gstrauss about 3 years ago

Thank you for the feedback. I will add some more references in the doc.

In the future, please avoid cross-posting, and look for forums or boards to ask questions (, instead of filing bugs in the issue tracker. If you do post in multiple places, at least cross-reference them with a link to one another.

Also available in: Atom