FastCGI FCGI_STDOUT before FCGI_STDIN bug
The FastCGI specification (http://www.fastcgi.com/devkit/doc/fcgi-spec.html) says: @`@The application must wait to finish reading FCGI_PARAMS before it begins writing FCGI_STDOUT and FCGI_STDERR, but it needn't finish reading from FCGI_STDIN before it begins writing these two streams''.
lighttpd fails to comply to the specification, because it wants to send FCGI_STDIN before it accepts FCGI_STDOUT.
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.
Also available in: Atom