Re: Best place to store per-request state ?

2015-03-04 Thread Ruslan Ermilov
On Tue, Mar 03, 2015 at 10:56:55PM -0800, James Gan wrote: > I'm learning how to develop module for nginx. > > In one of my testing module, I'm trying to save several per-request > int/long states for each http request in my module. The easiest approach > seems to add these variables to ngx_http_

Whether nginx can cache video file and large file via the way ( monitoring Port mirroring + send 302 http, packet to redirect ) ?

2015-03-04 Thread johnzeng
Hi , i have a switch , and i hope to redirect video traffic to Cache via using Port mirroring feature , and monitoring network traffic that involves forwarding a copy of each packet from one network switch. Whether nginx can listen and identify mirroring data packet ? maybe we can use gor ( ht

Re: Making new server parameter inside upstream block

2015-03-04 Thread Дмитрий Шалашов
Thanks! Turned out my code had differences with Cache::Memcached::Fast hashing anyway and I decided to fix them while also moving from ips to names. Best regards, Dmitriy Shalashov 2015-02-13 16:12 GMT+03:00 Maxim Dounin : > Hello! > > On Thu, Feb 12, 2015 at 11:11:00PM +0300, Дмитрий Шалашов

[nginx] Log: use ngx_cpymem() in a couple of places, no function...

2015-03-04 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/93fee708f168 branches: changeset: 6000:93fee708f168 user: Valentin Bartenev date: Wed Mar 04 19:20:30 2015 +0300 description: Log: use ngx_cpymem() in a couple of places, no functional changes. diffstat: src/core/ngx_log.c | 9 +++-- 1 f

[nginx] Style: moved ngx_http_ephemeral() macro to ngx_http_requ...

2015-03-04 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/f8ee988cfe6d branches: changeset: 6002:f8ee988cfe6d user: Ruslan Ermilov date: Wed Mar 04 08:10:40 2015 +0300 description: Style: moved ngx_http_ephemeral() macro to ngx_http_request.h. diffstat: src/http/ngx_http.h | 3 --- src/http

[nginx] Style: use %*s format, as in 68d21fd1dc64.

2015-03-04 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/add12ee1d01c branches: changeset: 6001:add12ee1d01c user: Ruslan Ermilov date: Wed Mar 04 08:05:38 2015 +0300 description: Style: use %*s format, as in 68d21fd1dc64. diffstat: src/mail/ngx_mail_auth_http_module.c | 11 +++ 1 files ch

[nginx] Proxy: use an appropriate error on memory allocation fai...

2015-03-04 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/cf2f8d91cf09 branches: changeset: 6003:cf2f8d91cf09 user: Ruslan Ermilov date: Wed Mar 04 08:12:53 2015 +0300 description: Proxy: use an appropriate error on memory allocation failure. diffstat: src/http/modules/ngx_http_proxy_module.c | 2 +