Re: Unit testing approach for nginx modules

2015-11-23 Thread Anatoli Marinov
Hi Maxim, How these tests could be run? Do I need something special installed? On Mon, Nov 23, 2015 at 2:42 AM, Maxim Dounin wrote: > Hello! > > On Sat, Nov 21, 2015 at 09:40:57PM +, Ritesh Jha wrote: > > > Hello everyone, > > We are developing nginx modules to implement few usecases in our

How to remove argument from request line?

2015-10-05 Thread Anatoli Marinov
modify r->args but on my origin I received unmodified request string. I guess this is not the right way. Could you advise me how I can achieve this? Thank in advance Anatoli Marinov ___ nginx-devel mailing list nginx-devel@nginx.org h

Re: Slice module

2015-10-01 Thread Anatoli Marinov
Thanks Roman! I tested it briefly and it looks good. Next days I think to test it in limited production environment with high traffic load (~10Gb). On Tue, Sep 29, 2015 at 7:00 PM, Roman Arutyunyan wrote: > Hello, > > I'm happy to publish the experimental Slice module. The module makes it > pos

Re: Couple questions about module behaviour

2015-03-16 Thread Anatoli Marinov
r->connection->sent ? On Tue, Mar 17, 2015 at 8:56 AM, hun...@opensource.com.vn < hun...@opensource.com.vn> wrote: > Hello, > > No, it means that a server don't know how many bytes a client > > actually recieved. > > So can we know how many bytes server actually sent (write to the socket)? > > T

Re: if-range issue

2014-08-13 Thread Anatoli Marinov
The patch change the behavior for more liberal direction :) On Wed, Aug 13, 2014 at 2:08 PM, Anatoli Marinov wrote: > I know this, but I used nginx as a reverse proxy and Etag comes from > remote server through nginx upstream. In general I do not have any control > on its value. N

Re: if-range issue

2014-08-13 Thread Anatoli Marinov
weak ] opaque-tag > weak = %x57.2F ; "W/", case-sensitive > opaque-tag = DQUOTE *etagc DQUOTE > etagc = %x21 / %x23-7E / obs-text > ; VCHAR except double quotes, plus obs-text > > On 13 Aug 2014, at 13:24, Anatoli Marinov wrote: > >

if-range issue

2014-08-13 Thread Anatoli Marinov
ge_time == r->headers_out.last_modified_time) { goto parse; } } goto next_filter; } The new code is simpler and it implements the standard instead the old one. Please comment my proposition. Anatoli Marinov ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: I want to use $ in module argument

2014-06-12 Thread Anatoli Marinov
Thanks Maxim! At the moment I am using @ instead of $ and internally in my module I replace it back. Its a different kind of workaround :) On Thu, Jun 12, 2014 at 1:29 AM, Maxim Dounin wrote: > Hello! > > On Wed, Jun 11, 2014 at 01:49:34PM +0300, Anatoli Marinov wrote: > > &g

I want to use $ in module argument

2014-06-11 Thread Anatoli Marinov
Hello, I am working on custom module which uses pcre. It could be configured and one from the arguments is a regular expression. How can I use argument with $ sign into it. Every time when I try for example use it like " my_custom_module '\.mp4$' " I got the error: invalid variable name in nginx.c

Re: nginx usptream 302 redirect

2013-10-04 Thread Anatoli Marinov
Sure, Thank you ! On Fri, Oct 4, 2013 at 6:15 PM, Maxim Dounin wrote: > Hello! > > On Fri, Oct 04, 2013 at 05:51:32PM +0300, Anatoli Marinov wrote: > > > I sent an email to nginx@ also. > > Let the discussion continue there. As already said, it's of

Re: nginx usptream 302 redirect

2013-10-04 Thread Anatoli Marinov
proxy_pass $foo; proxy_temp_path tmp ; } } } The issue appears again - 500 internal server error. On Fri, Oct 4, 2013 at 5:11 PM, Maxim Dounin wrote: > Hello! > > On Fri, Oct 04, 2013 at 04:20:04PM +0300, Anatoli Marinov wrote: > > > Where I can ask for a hel

Re: nginx usptream 302 redirect

2013-10-04 Thread Anatoli Marinov
Thanks in advance! On Wed, Oct 2, 2013 at 3:12 PM, Maxim Dounin wrote: > Hello! > > On Wed, Oct 02, 2013 at 03:03:18PM +0300, Anatoli Marinov wrote: > > > Hello, > > Is there an easy way to configure nginx upstream to follow 302 instead of > > send them to the browser

nginx usptream 302 redirect

2013-10-02 Thread Anatoli Marinov
Hello, Is there an easy way to configure nginx upstream to follow 302 instead of send them to the browser? Thanks ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: Sharing data when download the same object from upstream

2013-09-01 Thread Anatoli Marinov
so the standard caching > (headers that result in a cache miss e.g cookies, cache-control) would have > to be correct. > > At the very least Ill read over it and see if I spot anything / have > recommendations. > > Regards, > Mathew > > > On Fri, Aug 30, 2013 at 6:25 PM,

Re: Sharing data when download the same object from upstream

2013-08-30 Thread Anatoli Marinov
; > Regards, > Mathew > > > On Fri, Aug 30, 2013 at 6:01 PM, Anatoli Marinov wrote: > >> Hello, >> >> >> On Wed, Aug 28, 2013 at 7:56 PM, Alex Garzão wrote: >> >>> Hello Anatoli, >>> >>> Thanks for your reply. I will apprecia

Re: Sharing data when download the same object from upstream

2013-08-30 Thread Anatoli Marinov
Hello, On Wed, Aug 28, 2013 at 7:56 PM, Alex Garzão wrote: > Hello Anatoli, > > Thanks for your reply. I will appreciate (a lot) your help :-) > > I'm trying to fix the code with the following requirements in mind: > > 1) We were upstreams/downstreams with good (and bad) links; in > general, up

Re: Sharing data when download the same object from upstream

2013-08-27 Thread Anatoli Marinov
I had the same problem and I wrote a patch to reuse the file with I already have in tmp directory for the second stream (and for all streams before the file is completely cached). Unfortunately I cannot share it but can give you an idea how to do it. On Tue, Aug 27, 2013 at 8:43 PM, Alex Garzão

nginx dynamic configuration

2013-08-22 Thread Anatoli Marinov
Mates, Is there any written info how dynamic configuration for nginx works. I am wandering is it possible to add new proxy_cache zone with it without reload worker processes? There are several examples how to build dynamic configuration with lua and perl but both approaches cannot dynamicaly creat

problem with cache size

2013-03-01 Thread Anatoli Marinov
right but why the first is wrong? Thanks in advance Anatoli Marinov ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: rewrite phases order

2013-01-11 Thread Anatoli Marinov
Thanks :) On 01/11/2013 12:51 PM, Maxim Dounin wrote: Hello! On Fri, Jan 11, 2013 at 11:56:15AM +0200, Anatoli Marinov wrote: Hello colleagues, I am wondering is there an way to order function calls for rewrite phase. For example I have 3 modules that may reject request and all they register

rewrite phases order

2013-01-11 Thread Anatoli Marinov
"unordered" way for example B, C, A. How can I order the calls to A, B, C ? Thanks in advance Anatoli Marinov ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

how ngx.shared.DICT could be locked

2013-01-08 Thread Anatoli Marinov
lock it for a very small period of time? Thanks in advance Anatoli Marinov ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel