RE: How to implement handshake in an upstream module?

2014-01-20 Thread Reetesh Ranjan
Hi, This is about using keepalive. As I worked on another nginx module, I saw more about 'keepalive'. I see how you have used 'keepalive=1' on 'length == 0' and similar stuff can be seen in memcached module as well. When I was doing the sphinx module I got away with working behavior with the

RE: Help on designing using multiple location/upstream modules

2013-12-05 Thread Reetesh Ranjan
Hi! Date: Sat, 30 Nov 2013 14:37:04 -0800 Subject: Re: Help on designing using multiple location/upstream modules From: agen...@gmail.com To: nginx-devel@nginx.org Hello! On Sat, Nov 30, 2013 at 11:05 AM, Reetesh Ranjan wrote: Thanks for the help! Going by the documentation of the lua

RE: How to implement handshake in an upstream module?

2013-12-05 Thread Reetesh Ranjan
Hi! Date: Thu, 5 Dec 2013 13:23:55 -0800 Subject: Re: How to implement handshake in an upstream module? From: agen...@gmail.com To: nginx-devel@nginx.org You're essentially doing pipelined requests here and you will run into the following limitation in the nginx core:

How to implement handshake in an upstream module?

2013-12-04 Thread Reetesh Ranjan
Before I send my main request and process the response through create_request and process_header (and filter) callbacks, I need to have a short handshake with the upstream servers. It consists of a send() and a recv() from the upstream module. How to implement this? Would the following sequence

RE: How to implement handshake in an upstream module?

2013-12-04 Thread Reetesh Ranjan
if there are any 'state machine' related catches in doing so. Thanks,Reetesh Date: Thu, 5 Dec 2013 02:38:35 +0400 From: mdou...@mdounin.ru To: nginx-devel@nginx.org Subject: Re: How to implement handshake in an upstream module? Hello! On Thu, Dec 05, 2013 at 02:39:28AM +0530, Reetesh Ranjan

RE: Help on designing using multiple location/upstream modules

2013-11-30 Thread Reetesh Ranjan
for achieving what I need to do. Regards,Reetesh Date: Wed, 27 Nov 2013 12:39:15 -0800 Subject: Re: Help on designing using multiple location/upstream modules From: agen...@gmail.com To: nginx-devel@nginx.org Hello! On Tue, Nov 26, 2013 at 4:30 AM, Reetesh Ranjan wrote: I have thought

Help on designing using multiple location/upstream modules

2013-11-26 Thread Reetesh Ranjan
Hi, I am a newbie to nginx. I have done some initial research on nginx architecture, location modules, upstream modules, third party modules available for various purposes etc. After going through a number of pages I have a question which I can't seem to find an easy answer to. I have a very

RE: Help on designing using multiple location/upstream modules

2013-11-26 Thread Reetesh Ranjan
I saw several pages on web about ngx_http_subrequest; filters vs location modules using it; parallel vs sequential usage; code/modules using it etc. Would first try out a solution for my use case using this method, and come back in case I am stuck and of course after reading previous threads.