When the output of include_shell calls include_shell itself,
that second invocation must not truncate the buffer used for the
This might sound like a pathological setup in itself, but with
e.g. debian's include-conf-enabled.pl, which outputs a list of
include statements for all files in /etc/lighttpd/conf-enabled,
if any of the *.conf files in that directory invokes include_shell,
the parsing of the rest of the files in that directory is effectively
This fixes a regression since commit
a46bc4f5de in such setups.
github: closes #95
equivalent to prior code, but more direct (legibile in code) to look up
empty string than to walk array. Might be marginally faster to walk
array when the list is short, but the lookup is also fairly quick in
that case, too.
send Connection: close if it is known that request body has not finished
being read and will not finish being read
"Suboptimal keep-alive handling when request body is not read"
reduce initial buffer size if large POST to backend stored in temp files
regression in lighttpd 1.4.52
"[regression] lighttpd gets killed after uploading a big file"
After 4 seconds, send kill() every second while waiting for child to exit.
Send host->kill_signal for next 4 seconds, then send SIGTERM (usually same
as host->kill_signal) for following 8 seconds, and finally send SIGKILL
each second after that, until the child process dies.
github: closes #94