[core] option to stream request body to backend (fixes #376)
commitf69f209e6d7113f95f10f82c2cf6079fcaca12fe
authorGlenn Strauss <gstrauss@gluelogic.com>
Fri, 10 Jun 2016 04:04:10 +0000 (10 00:04 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Mon, 20 Jun 2016 03:34:16 +0000 (19 23:34 -0400)
treecd972fde0e2562a09b96c6b7d68abc6c3ce5460e
parent695c8f4e070b290d98b2ea253a76897c7b86a0d6
[core] option to stream request body to backend (fixes #376)

Set server.stream-request-body = 1 or server.stream-request-body = 2
to have lighttpd connect to backend (CGI, FastCGI, SCGI, proxy)
immediately after parsing request headers, and to stream request body
as it arrives.

default: buffer entire request body before connecting to backend,
in order to avoid tying up (limited) backend resources which are often
implemented using libraries which wait for entire request body before
proceeding.

x-ref:
  "Reimplement upload (POST) handling to match apache/zeus/thttpd/boa functionality"
  https://redmine.lighttpd.net/issues/376
src/connections-glue.c
src/mod_cgi.c
src/mod_fastcgi.c
src/mod_proxy.c
src/mod_scgi.c
src/mod_webdav.c