Re: nginx + my module crashes only when ignore client abort = on

2013-03-17 Thread gadh
thanks Maxim ! i very appreciate your help on this. about the temp file - i protect from a response to be written to a file by knowing the max size that can be sent by the server and enlarging the proxy buffers accordingly. i know i ruin the original request header - its the main purpose for my cod

Re: Is it possible that nginx will not buffer the client body?

2013-03-17 Thread Weibin Yao
2013/3/14 Pasi Kärkkäinen > On Thu, Feb 28, 2013 at 10:12:47PM +0400, Maxim Dounin wrote: > > Hello! > > > > Hello, > > > On Thu, Feb 28, 2013 at 05:36:23PM +, André Cruz wrote: > > > > > I'm also very interested in being able to configure nginx to NOT > > > proxy the entire request. > > > >

Re: nginx + my module crashes only when ignore client abort = on

2013-03-17 Thread Maxim Dounin
Hello! On Sun, Mar 17, 2013 at 05:47:24AM -0400, gadh wrote: Below just couple of comments. Outlined problems are enough to cause arbitrary segmentation faults, and I haven't looked for more. [...] > ngx_memzero(&sr->headers_in, sizeof(sr->headers_in)); Note: this ruins original reque

Re: Simple question about proxy cache

2013-03-17 Thread Maxim Dounin
Hello! On Sun, Mar 17, 2013 at 08:08:39PM +, John Moore wrote: > I've used nginx as a reverse proxy server for a long while but I've not > tried out the proxy cache until today, and I have to say I'm a little > bit confused by what I'm seeing in the cache log, and I'm wondering > whether I

Simple question about proxy cache

2013-03-17 Thread John Moore
I've used nginx as a reverse proxy server for a long while but I've not tried out the proxy cache until today, and I have to say I'm a little bit confused by what I'm seeing in the cache log, and I'm wondering whether I've set things up correctly. My requirements are actually pretty simple. I h

NGINX built and analyzed

2013-03-17 Thread Antonio Manuel Muñiz Martín
Hi guys, We've taken the freedom of configure a built of NGINX in a daily basis. So, every day (if there are changes in the source code) a new build will run. After each build a Sonar analysis will be performed. This is the build link: http://live.clinkerhq.com/jenkins/job/nginx-build And this is

Re: nginx + my module crashes only when ignore client abort = on

2013-03-17 Thread gadh
more info: when i use "ignore client abort = on" , the crash happens when the client aborts the connection, BEFORE my subrequest handler is called, so its unlikely this code causes the crash. also, i send the subrequest to a configured url named "aaa_post/" which uses the proxy module to send it to

Re: Reverse Proxy Data Diode

2013-03-17 Thread Camayoc
I'd argue the commercial solutions are value for money, given the complexities. By I accept I am biased :-) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237446,237457#msg-237457 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.

Re: Strange $upstream_response_time latency spikes with reverse proxy

2013-03-17 Thread Maxim Dounin
Hello! On Sun, Mar 17, 2013 at 02:23:20AM -0700, Jason Oster wrote: [...] > > 1) A trivial one. Listen queue of your backend service is > > exhausted, and the SYN packet is dropped due to this. This > > can be easily fixed by using bigger listen queue, and also > > easy enough to track as t

Re: Reverse Proxy Data Diode

2013-03-17 Thread Robert Gabriel
On 17 March 2013 10:17, Camayoc wrote: > I urge caution using this approach to a data diode. > The question you ask is a very important one: where can I find a working > configuration? > Do not get me wrong, it is possible to make such approaches work, I have > seen them in my companies test lab.

Re: nginx + my module crashes only when ignore client abort = on

2013-03-17 Thread gadh
Ok, i'll attach my calling to subrequest code, its working flawlessly except the case i reported here: //-- /* Note: the purspose of this code is to call a handler module (at rewrite phase), send special POST subrequest to another serv

Re: Strange $upstream_response_time latency spikes with reverse proxy

2013-03-17 Thread Jason Oster
Hi again, Maxim! On Mar 16, 2013, at 4:39 PM, Maxim Dounin wrote: > Hello! > > On Sat, Mar 16, 2013 at 01:37:22AM -0700, Jay Oster wrote: > >> Hi Maxim, >> >> Thanks for the suggestion! It looks like packet drop is the culprit here. >> The initial SYN packet doesn't receive a corresponding SY

Re: Strange $upstream_response_time latency spikes with reverse proxy

2013-03-17 Thread Jason Oster
Hello Andrew, On Mar 16, 2013, at 8:05 AM, Andrew Alexeev wrote: > Jay, > > On Mar 16, 2013, at 12:37 PM, Jay Oster wrote: > >> Hi Maxim, >> >> Thanks for the suggestion! It looks like packet drop is the culprit here. >> The initial SYN packet doesn't receive a corresponding SYN-ACK from the

Re: Reverse Proxy Data Diode

2013-03-17 Thread Camayoc
I urge caution using this approach to a data diode. The question you ask is a very important one: where can I find a working configuration? Do not get me wrong, it is possible to make such approaches work, I have seen them in my companies test lab. The question you have to consider is reliabilit