Early output by a fastcgi app stops the body sending process

Maxim Dounin mdounin at mdounin.ru
Wed May 26 14:51:02 MSD 2010


On Tue, May 25, 2010 at 11:01:55PM +0200, Maxime Bizon wrote:

> I'm writing a FastCGI application, in which I do "lazy" POST data
> access, meaning stdin is not read until it's needed. That mean that data
> can be sent on stdout before stdin is fully read.
> But it seems nginx stops writing to stdin (and close the body temp file)
> the first time it gets data on stdout:


> Is it expected ?

Yes, currently nginx stops sending request message as soon as it
gets full headers from backend (and starts sending response).  
This probably have to be changed.

Maxim Dounin

More information about the nginx-devel mailing list