nginx & upstream_response_time

Marcin Deranek marcin.deranek at
Tue Oct 2 14:59:16 UTC 2012

Hi Maxim,

On Tue, 2 Oct 2012 18:30:07 +0400
Maxim Dounin <mdounin at> wrote:

> You asked nginx to work in unbuffered mode, and in this mode 
> doesn't pay much attention to what happens with backend connection 
> if it isn't able to write data it already has to a client.  In 
> particular it won't detect connection close by the backend (and 
> stop counting $upstream_response_time).

I see.

> This is probably could be somewhat enhanced, but if you care about 
> $upstream_response_time it most likely means you don't need  
> "uwsgi_buffering off" and vice versa.

Well, I don't completely agree. As it was explained at,193347,193446#msg-193446 some sort of
buffering still takes place even though we work in unbuffered mode. The
only reason why we went for unbuffered mode is latency.


More information about the nginx mailing list