Re: [PATCH] Request hang when cache_lock is used in subrequests

2014-12-01 Thread Maxim Dounin
Hello! On Fri, Nov 28, 2014 at 09:38:43PM -0800, Yichun Zhang (agentzh) wrote: Hi Maxim! On Thu, Nov 27, 2014 at 7:31 AM, Maxim Dounin wrote: Yichun, I've spent some time looking in this, and I don't see how it can cause infinite hang at least with stock nginx modules. It certainly

Re: [PATCH] Request hang when cache_lock is used in subrequests

2014-11-28 Thread Yichun Zhang (agentzh)
Hi Maxim! On Thu, Nov 27, 2014 at 7:31 AM, Maxim Dounin wrote: Yichun, I've spent some time looking in this, and I don't see how it can cause infinite hang at least with stock nginx modules. It certainly can cause suboptimal behaviour though, both with proxy cache locks and with AIO.

Re: [PATCH] Request hang when cache_lock is used in subrequests

2014-11-27 Thread Maxim Dounin
Hello! On Sat, Oct 26, 2013 at 03:38:35PM -0700, Yichun Zhang (agentzh) wrote: 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

[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()