mod_fastcgi.c x-send-file sets incorrect Content-Length on 2GB+ files
ASK QUESTIONS IN Forums:
Running Debian Lenny and the stock lighttpd 1.4.19.
When transferring large files (>2GB) using x-send-file, the Content-Length header sends the incorrect file size that results in truncated files. In mod_fastcgi.c at around line 2558 you will see this:
Changing this line to something like this fixes the issue:
Thanks for writing lighttpd!
Updated by icy almost 14 years ago
- Target version changed from 1.4.19 to 1.4.23
Target version != affected version. That being said: it should probably be changed to buffer_copy_off_t().
Thanks for reporting.
Updated by stbuehler almost 14 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r2494.
Also available in: Atom