Project

General

Profile

Bug #2803

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

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

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
mod_cgi
Target version:
-
Start date:
2017-03-30
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

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 https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_upload-dirsDetails, 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.

History

#1

Updated by gstrauss about 2 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.
https://redmine.lighttpd.net/projects/lighttpd/boards/2

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

#2

Updated by hsiaoairplane about 2 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.

#3

Updated by gstrauss about 2 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 (https://redmine.lighttpd.net/projects/lighttpd/boards/2), 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