Re: [PATCH] Proxy remote server SSL certificate verification

2013-08-27 Thread Aviram Cohen
Added a new version, with all the required fixes. diff -Nrpu nginx-1.4.1/src/http/modules/ngx_http_proxy_module.c nginx-1.4.1-proxy-ssl-verification/src/http/modules/ngx_http_proxy_module.c --- nginx-1.4.1/src/http/modules/ngx_http_proxy_module.c 2013-05-06 13:26:50.0 +0300 +++

[nginx] nginx-1.5.4-RELEASE

2013-08-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/376a5e769400 branches: changeset: 5344:376a5e769400 user: Maxim Dounin mdou...@mdounin.ru date: Tue Aug 27 17:37:15 2013 +0400 description: nginx-1.5.4-RELEASE diffstat: docs/xml/nginx/changes.xml | 102

[nginx] release-1.5.4 tag

2013-08-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/d1403de41631 branches: changeset: 5345:d1403de41631 user: Maxim Dounin mdou...@mdounin.ru date: Tue Aug 27 17:37:15 2013 +0400 description: release-1.5.4 tag diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8

Re: The meaning of ngx_http_request_t.out ?

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 11:21:38AM +0800, 邓尧 wrote: Hi, I'm writing an nginx module, it does something similar to the sub module. After some research I succeeded in handling the ngx_chain_t pointer passed to my body filter. My module seems to work well for static files. When my

Re: Sharing data when download the same object from upstream

2013-08-27 Thread Alex Garzão
Hello Wandenberg, Thanks for your reply. Using proxy_cache_lock, when the second request arrive, it will wait until the object is complete in the cache (or until proxy_cache_lock_timeout expires). But, in many cases, my upstream has a really slow link and NGINX needs more than 30 minutes to

[nginx] Version bump.

2013-08-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/293290081b12 branches: changeset: 5346:293290081b12 user: Maxim Dounin mdou...@mdounin.ru date: Wed Aug 28 02:34:21 2013 +0400 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[nginx] Typo fixed.

2013-08-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/011d72dea802 branches: changeset: 5347:011d72dea802 user: Maxim Dounin mdou...@mdounin.ru date: Wed Aug 28 02:34:30 2013 +0400 description: Typo fixed. diffstat: src/event/ngx_event_pipe.c | 4 ++-- 1 files changed, 2 insertions(+), 2

Re: [PATCH] Image filter: large image handling

2013-08-27 Thread Maxim Dounin
Hello! On Wed, Aug 28, 2013 at 12:21:27AM +0800, lanshun zhou wrote: # HG changeset patch # User Lanshun Zhou zls.so...@gmail.com # Date 1377620347 -28800 # Node ID 4fae04f332b489c85cdc116e6138a618372d3691 # Parent d1403de4163100ec0c6c015e57f22384456870e3 Image filter: large image

Re: [PATCH] Proxy remote server SSL certificate verification

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 11:47:38AM +0300, Aviram Cohen wrote: Added a new version, with all the required fixes. This looks better, modulo various style problems. It also looks like verification code isn't complete. See below for comments. diff -Nrpu

Re: [PATCH] Image filter: large image handling

2013-08-27 Thread lanshun zhou
It's ok for me, thanks~ 在 2013-8-28 上午6:43,Maxim Dounin mdou...@mdounin.ru写道: Hello! On Wed, Aug 28, 2013 at 12:21:27AM +0800, lanshun zhou wrote: # HG changeset patch # User Lanshun Zhou zls.so...@gmail.com # Date 1377620347 -28800 # Node ID 4fae04f332b489c85cdc116e6138a618372d3691

Re: GEO модуль и количество префиксов

2013-08-27 Thread Gelun, Artem
Меньше миллиона )) Интересует как раз при каком кол-ве префиксов начнётся влияние на время ответа. 1000? 10К? 100К? 26 августа 2013 г., 15:18 пользователь Anton Yuzhaninov cit...@citrin.ruнаписал: On 08/23/13 21:51, Gelun, Artem wrote: Подскажите пожалуйста какое максимальное количество

Re: GEO модуль и количество префиксов

2013-08-27 Thread Vadim Lazovskiy
Здравствуйте. У нас 2М (сконверченая geoip база). Памяти жрет много, да, но на скорость ответов практически не влияет. Данные хранятся в radix tree. Поиск по ней не сильно зависит от количества префиксов и имеет прогнозируемое время. Грубо говоря до 32 итераций для адресов /32. 27 августа 2013

Re: GEO модуль и количество префиксов

2013-08-27 Thread Gelun, Artem
Спасибо! 27 августа 2013 г., 12:08 пользователь Vadim Lazovskiy vadim.lazovs...@gmail.com написал: Здравствуйте. У нас 2М (сконверченая geoip база). Памяти жрет много, да, но на скорость ответов практически не влияет. Данные хранятся в radix tree. Поиск по ней не сильно зависит от

nginx-1.5.4

2013-08-27 Thread Maxim Dounin
Изменения в nginx 1.5.4 27.08.2013 *) Изменение: MIME-тип для расширения js изменён на application/javascript; значение по умолчанию директивы charset_types изменено соответственно. *) Изменение: теперь директива image_filter с

Re: upstream и Host header

2013-08-27 Thread incubus
Валентин Бартенев Wrote: --- Вы бы рассказали, какую задачу решаете. А то окажется, что вам не блок upstream нужен (который предполагает, что это группа серверов отдающих один и тот же ресурс), а split_clients. Необходимо проксировать

Nginx reload, выедает CPU

2013-08-27 Thread Serge Negodyuck
Как только я посылаю nginx сигнал HUP (или nginx -s reload), процессы в состоянии nginx: worker process is shutting down (nginx) начинают кушать весь доступный процессор. Если подсоединиться к такому процессу отладчиком: (gdb) bt #0 0x000801656d5c in kevent () from /lib/libc.so.7 #1

Re: Nginx reload, выедает CPU

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 05:35:22PM +0300, Serge Negodyuck wrote: Как только я посылаю nginx сигнал HUP (или nginx -s reload), процессы в состоянии nginx: worker process is shutting down (nginx) начинают кушать весь доступный процессор. Если подсоединиться к такому процессу

Re: nginx-1.5.4

2013-08-27 Thread Михаил Монашёв
Здравствуйте, Maxim. *) Изменение: теперь директива image_filter с параметром size возвращает ответ с MIME-типом application/json. Не касабельно релиза. А просто вспомнилось. В документации для image_filter для resize написано неверное слово уменьшает. Если я правильно понимаю, то

Re: nginx-1.5.4

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 08:29:21PM +0400, Михаил Монашёв wrote: Здравствуйте, Maxim. *) Изменение: теперь директива image_filter с параметром size возвращает ответ с MIME-типом application/json. Не касабельно релиза. А просто вспомнилось. В документации для

Re: Nginx reload, выедает CPU

2013-08-27 Thread Serge Negodyuck
27 августа 2013 г., 18:47 пользователь Maxim Dounin mdou...@mdounin.ru написал: Hello! Судя по backtrace'у, nginx честно ждёт новых собитий в ядре. Возможно, кушать процессор - это побочный эффект от нехватки ресурсов из-за большого количества завершающихся процессов? Штатно, 4 ядра,

Re: Nginx reload, выедает CPU

2013-08-27 Thread Serge Negodyuck
2013/8/27 Serge Negodyuck s...@petrovich.kiev.ua: Имеет смысл либо походить по коду в gdb, либо посмотреть на картину с помощью ktrace + kdump -T. Ну и на банальный top тоже имеет смысл посмотреть внимательно. Ок, попробую нарыть больше информации для диагностики. И воспроизвести в

Re: Nginx reload, выедает CPU

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 10:59:25PM +0300, Serge Negodyuck wrote: 2013/8/27 Serge Negodyuck s...@petrovich.kiev.ua: Имеет смысл либо походить по коду в gdb, либо посмотреть на картину с помощью ktrace + kdump -T. Ну и на банальный top тоже имеет смысл посмотреть внимательно.

Nginx 1.4.2 + Mod security 2.7.5 + Apache 2.2.22 - Проблемы с кодировкой.

2013-08-27 Thread shtein
Добрый день. Имеем Debian 7, Apache 2.2.22 с mod_perl в качестве бэкэнда, Nginx 1.4.2 в качестве фронтенда. Всё отлично работало, пока в один прекрасный момент не решили поставить modsecurity for nginx. Поставил свежую версию, поставил типовой конфиг modsecurity с сайта modsecurity. И начались

Re: VirtualDocumentRoot with 1.4.2

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 04:43:12PM +0800, Kai Hendry wrote: Hi there, I've tried to replicate my Apache VirtualDocumentRoot /srv/www/%0 to nginx. I have http://dabase.com/e/04055/ with server_name ~^(?vhost.*)$; root /srv/www/$vhost; access_log

Re: VirtualDocumentRoot with 1.4.2

2013-08-27 Thread Kai Hendry
On Tue, Aug 27, 2013 at 03:32:29PM +0400, Maxim Dounin wrote: : - the user whose credentials are used by worker processes should have : permissions to create files in a directory with such logs; /var/log/nginx has +x on http user, so that's fine. : - buffered writes do not work; Not sure

Re: VirtualDocumentRoot with 1.4.2

2013-08-27 Thread Francis Daly
On Tue, Aug 27, 2013 at 08:24:12PM +0800, Kai Hendry wrote: On Tue, Aug 27, 2013 at 03:32:29PM +0400, Maxim Dounin wrote: Hi there, : - the user whose credentials are used by worker processes should have : permissions to create files in a directory with such logs; /var/log/nginx has +x

Re: zero size buf in output(Bug?)

2013-08-27 Thread milordk
Аналогичная проблема с ошибками в логах: zero size buf in output uname -a : FreeBSD srv.sportactions.ru 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64 builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 nginx -v : nginx version: nginx/1.5.3 nginx

Re: zero size buf in output(Bug?)

2013-08-27 Thread milordk
На всякий случай: Active Connections порядка 700..800, из них 500 в состоянии Waiting (по данным stub) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,231543,242245#msg-242245 ___ nginx mailing list nginx@nginx.org

nginx-1.5.4

2013-08-27 Thread Maxim Dounin
Changes with nginx 1.5.4 27 Aug 2013 *) Change: the js extension MIME type has been changed to application/javascript; default value of the charset_types directive was changed accordingly. *) Change: now the image_filter directive

Re: VirtualDocumentRoot with 1.4.2

2013-08-27 Thread Kai Hendry
On Tue, Aug 27, 2013 at 01:28:42PM +0100, Francis Daly wrote: +w allows you to create files in a directory. Sorry I meant to say +w I think I must have got confused with one of my server blocks and not the wildcard. Sorry to trouble you. it seems to be to working. :-)

Help needed NGINX reverse proxy to NODE.JS

2013-08-27 Thread Ben
Hi, I've tried this with NGINX 1.4.1-1ppa1~precise and node v0.10.17 and just can't get it to work. What I've tried / what happens : (a) Yes, I have tested this direct between client code and node listening on 0.0.0.0 and it works as expected (b) I have tried a multitude of alternative

Re: zero size buf in output(Bug?)

2013-08-27 Thread B.R.
Hello, Isn't there a dedicated nginx-ru mailing list? :o) ​ --- *B. R.* ** ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Help needed NGINX reverse proxy to NODE.JS

2013-08-27 Thread Ben
Nothing at all ... I promise you ! (I've been tail -f'ing the logs) , and I can promise you its not a DNS problem because I can see the NGINX default website on port 80 ;-) I found a workaround setting proxy_buffering off; in nginx makes it work again. Don't know if this is the way it's

Re: Help needed NGINX reverse proxy to NODE.JS

2013-08-27 Thread Maxim Dounin
Hello! On Tue, Aug 27, 2013 at 05:49:19PM +0100, Ben wrote: Nothing at all ... I promise you ! (I've been tail -f'ing the logs) , and I can promise you its not a DNS problem because I can see the NGINX default website on port 80 ;-) The location with websocket proxy you are testing is on