Re: HttpLuaModule create asynchronous subrequests

2014-11-14 Thread Yichun Zhang (agentzh)
Hello! On Fri, Nov 14, 2014 at 11:20 AM, Guido Accardo wrote: > From the doc of proxy_ignore_client_abort: > > " ... Determines whether the connection with a proxied server should be > closed when a client closes the connection without waiting for a response > ..." > > So basically I'm discarding

Re: HttpLuaModule create asynchronous subrequests

2014-11-14 Thread Guido Accardo
Hello, On Thu, Nov 13, 2014 at 5:24 PM, Yichun Zhang (agentzh) wrote: > Hello! > > On Wed, Nov 12, 2014 at 12:20 PM, Guido Accardo wrote: > > > > Here, prod response is sent immediately as I want and dev receives the > > traffic but the connection is closed the I got a Broken Pipe (which makes >

Re: HttpLuaModule create asynchronous subrequests

2014-11-13 Thread Yichun Zhang (agentzh)
Hello! On Wed, Nov 12, 2014 at 12:20 PM, Guido Accardo wrote: > > Here, prod response is sent immediately as I want and dev receives the > traffic but the connection is closed the I got a Broken Pipe (which makes > sense). > For this error, maybe you should configure proxy_ignore_client_abor

HttpLuaModule create asynchronous subrequests

2014-11-12 Thread Guido Accardo
Hi, With the help of HttpLuaModule I'm trying to duplicate every request into two upstreams. Here is my configuration: site.conf --- upstream prod_upstream { server 127.0.0.1:5000; server 127.0.0.1:5001; } upstream dev_upstream { server 127.0.0.1:6000; } server {