Re: [PATCH] ngx_gzip might hang the request for slow downstreams

2013-10-26 Thread Yichun Zhang (agentzh)
Hello! On Sat, Oct 26, 2013 at 2:40 PM, Maxim Dounin wrote: > > Well, it would be good to adjust gzip (and other filters) to make > this actually work. And I think something similar may be > triggered using non-buffered proxy, too. Part of a response might > be left in buffers till new data from

[PATCH] Request hang when cache_lock is used in subrequests

2013-10-26 Thread Yichun Zhang (agentzh)
Hello! Akos Gyimesi reported a request hang (downstream connections stuck in the CLOSE_WAIT state forever) regarding use of proxy_cache_lock in subrequests. The issue is that when proxy_cache_lock_timeout is reached, ngx_http_file_cache_lock_wait_handler calls r->connection->write->handler() dire

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

2013-10-26 Thread Maxim Dounin
Hello! On Fri, Oct 25, 2013 at 10:59:44PM -0700, Yichun Zhang (agentzh) wrote: > Hello! > > On Fri, Oct 25, 2013 at 10:55 PM, Yichun Zhang (agentzh) wrote: > > > > This is triggered by my own (3rd-party) module, ngx_lua. This module > > provides a ngx.flush(true) API function that flushes out al