[PATCH] always process short preread body

John Fremlin john at fremlin.org
Sat Sep 27 21:12:22 MSD 2008

"Denis F. Latypoff" <denis at gostats.ru> writes:
> Thursday, September 25, 2008, 9:40:56 PM, you wrote:
>> On Thu, Sep 25, 2008 at 09:25:08PM +0900, John Fremlin wrote:
>> [...]
>>>>   From strace in your message, it looks like the real problems are:
>>>> 1. Backend, which hasn't closed connection after sending reply.
>>>Yes, the backend does not close.
>> Ok, so I was right and backend isn't http-complaint.

Sorry to be a pain, but I can't find where this behaviour is specified.


            If either the client or the server sends the close token in
            the Connection header, that request becomes the last one for
            the connection.

Nothing about which side should close the connection?

I do agree that the mongrels backend is wrong to keep the connection
open as it is a waste of resources, but I can't see where it is specified.


> Did you tried
> 	proxy_buffering off;
> 	keepalive_timeout 0;
> 	gzip off;
> for these locations?

Turning off the proxy_buffering makes the problem go away, IIRC. I am not
sure if we also tried combinations of the other options.


>> I believe I will be able to reproduce the problem and I'll try to 
>> produce more correct patch as time permits.



More information about the nginx mailing list