handlers can read response before sending req body (fixes #131, #2566)
commit2f21aaa973a902ee237a9894bdedd6c82c8edfe2
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 11 Apr 2016 23:46:09 +0000 (11 19:46 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Mon, 18 Apr 2016 10:19:04 +0000 (18 06:19 -0400)
tree0b9b5a75395f4ddc506433d32988f4e32cfbff79
parent7f942ce09a72ebd6a607c5f64196be144253c75c
handlers can read response before sending req body (fixes #131, #2566)

dynamic handlers mod_fastcgi, mod_scgi, and mod_proxy can now read
response from backend prior to finishing sending request body.

If the backend closes the connections (or shuts down socket write
end so that lighttpd read() 0 to indicate EOF), then lighttpd will
abort attempting to send request body to backend.

x-ref:
  "mod_fastcgi should handle "quick" responses"
  https://redmine.lighttpd.net/issues/2566
  "FastCGI FCGI_STDOUT before FCGI_STDIN bug"
  https://redmine.lighttpd.net/issues/131
src/mod_fastcgi.c
src/mod_proxy.c
src/mod_scgi.c