Project

General

Profile

[Solved] lighttpd 1.4.35 file buffering question

Added by cbfk23 over 2 years ago

Dear lighttpd experts,

I'm using lighttpd 1.4.35 under an embedded linux environment. I have a memory issue when upload a big firmware to the embedded system.
Currently we upload the firmware file directly to a memory partition so that we can do a firmware upgrade quicker. The issue is that the lighttpd seems to buffer the whole firmware file to memory before writing the buffered files to the destination file in memory. During the uploading stage, we would need free memory at least two times of the firmware file size. The issue is that we don't have so much free memory on our system.

Another observation is that it took ages (90seconds) for the system/lighttpd to write the buffered files (in memory) to the destination file (in memory). To copy a file of similar size from memory to memory would only take a few ms.

Does anyone see similar issue before? Is there a way to configure the lighttpd differently to avoid the buffering? Do I need to update my lighttpd to fix the issue?

Let me know if you need any more information about the issue.

Any advice is greatly appreciated and apology if this has been discussed before.

Many thanks,


Replies (1)

RE: lighttpd 1.4.35 file buffering question - Added by gstrauss over 2 years ago

Dear lighttpd experts,

Dear embedded linux intern(?), have you tried reading the lighttpd documentation? Was something unclear in the lighttpd documentation? Do you have a more specific question?

Does anyone see similar issue before?

Many people have found answers to their questions in the lighttpd documentation.

Do I need to update my lighttpd to fix the issue?

Yes. You should read the lighttpd documentation to understand the configuration options available.

    (1-1/1)