Re: "http://nginx.org/r/directive" will not redirect to correct language version of directive

2013-01-06 Thread Ruslan Ermilov
On Sat, Jan 05, 2013 at 03:45:49PM +0400, Maxim Dounin wrote: > On Sat, Jan 05, 2013 at 06:10:27PM +0800, chen cw wrote: > > > Hi > > I am a Chinese user and my language is zh-CN, however, when I access > > the document http://nginx.org/r/allow, I see the English page even if there > > is a C

Re: [PATCH] Fixing a segmentation fault when resolver and poll are used together

2013-01-23 Thread Ruslan Ermilov
On Tue, Jan 22, 2013 at 02:56:34PM -0800, agentzh wrote: > I've noticed a segmentation fault caught by Valgrind/Memcheck when > using ngx_resolver and ngx_poll_module together with Nginx 1.2.6 on > Linux x86_64 (and i386 too): > > ==25191== Jump to the invalid address stated on the next line >

Re: [PATCH] Fixing a segmentation fault when resolver and poll are used together

2013-01-25 Thread Ruslan Ermilov
On Wed, Jan 23, 2013 at 12:16:59PM -0800, agentzh wrote: > On Wed, Jan 23, 2013 at 12:13 AM, Ruslan Ermilov wrote: > > > > While the first patch looks more natural to me, the second patch is > > in line with the ngx_epoll_process_events() code. > > > > Yes, your

Re: Export all log specific variables

2013-01-31 Thread Ruslan Ermilov
On Fri, Jan 04, 2013 at 03:41:18PM +0200, Kiril Kalchev wrote: > Hi Guys, > > I made a patch for exporting all log only variable as common nginx variables. > I am wandering how can I submit the patch to the official nginx devs. I am > attaching the patch in this email. If I have to do something mo

Re: server_name and listen behaviour

2013-02-12 Thread Ruslan Ermilov
On Tue, Feb 12, 2013 at 09:10:17PM +0400, ivan babrou wrote: >Hi, I have a question. It's better to describe with example >I point one.local and two.local to 127.0.0.1 and create following servers >in config for nginx: >server { >  listen 80; >  server_name one.local; > 

Re: server_name and listen behaviour

2013-02-13 Thread Ruslan Ermilov
On Wed, Feb 13, 2013 at 08:56:56AM +0400, ivan babrou wrote: > On 12 February 2013 23:14, Ruslan Ermilov wrote: > > > On Tue, Feb 12, 2013 at 09:10:17PM +0400, ivan babrou wrote: > > >Hi, I have a question. It's better to describe with example > > >

Re: Support for progressive jpeg in image_filter module

2013-03-15 Thread Ruslan Ermilov
On Wed, Mar 13, 2013 at 10:04:35PM +0400, ivan babrou wrote: > This patch adds support for progressive jpeg and pgn encoding with > image_filter_interlace on/off setting. Google suggests to use progressive > jpegs so why not with nginx? Your MUA broke the text patch, and HTML with the patch is gen

Re: [PATCH] Guard against failed allocation during binary upgrade

2013-03-15 Thread Ruslan Ermilov
On Fri, Mar 15, 2013 at 02:27:57PM -0700, Piotr Sikora wrote: > Hey, > pretty obvious patch attached ;) Your patch obviously looks good. :) > diff -r a29c574d61fa src/core/nginx.c > --- a/src/core/nginx.c Fri Mar 15 20:00:49 2013 + > +++ b/src/core/nginx.c Fri Mar 15 14:22:04 2013 -0700 >

Re: Support for progressive jpeg in image_filter module

2013-03-16 Thread Ruslan Ermilov
On Sat, Mar 16, 2013 at 12:07:26PM +0400, ivan babrou wrote: > I added cast to int, fixed order and this is plain text version of the patch. It's still broken [1], please find a way to send non-broken patches. $ patch < p patching file ngx_http_image_filter_module.c Hunk #1 succeeded at 45 with

Re: Support for progressive jpeg in image_filter module

2013-03-16 Thread Ruslan Ermilov
On Sat, Mar 16, 2013 at 10:06:34PM +0400, ivan babrou wrote: >Maybe you're right about moving gdImageInterlace >from ngx_http_image_out. Should I fix something else or is it okay now? I like the patch in the form I sent it back. ___ nginx-devel

Re: [PATCH] Guard against failed allocation during binary upgrade

2013-03-18 Thread Ruslan Ermilov
On Sun, Mar 17, 2013 at 04:21:41AM +0400, Maxim Dounin wrote: > On Sat, Mar 16, 2013 at 07:58:38AM +0400, Ruslan Ermilov wrote: > > > On Fri, Mar 15, 2013 at 02:27:57PM -0700, Piotr Sikora wrote: > > > Hey, > > > pretty obvious patch attached ;) > >

Re: Support for progressive jpeg in image_filter module

2013-03-19 Thread Ruslan Ermilov
On Sat, Mar 16, 2013 at 10:18:31PM +0400, Ruslan Ermilov wrote: > On Sat, Mar 16, 2013 at 10:06:34PM +0400, ivan babrou wrote: > >Maybe you're right about moving gdImageInterlace > >from ngx_http_image_out. Should I fix something else or is it okay now? > > I li

Re: Request for comment: Where is the status module?

2013-03-25 Thread Ruslan Ermilov
On Tue, Mar 26, 2013 at 11:22:44AM +0800, Weibin Yao wrote: >Hi, folks, >I noticed the http status module in the auto/options script: >227         --without-http_status_module)    HTTP_STATUS=NO       >      ;; >But I can't find any source file with this module. Is this module r

Re: DNS bug report

2013-04-12 Thread Ruslan Ermilov
Hi, On Fri, Apr 12, 2013 at 07:38:46AM +, 彭谦(研六 福州) wrote: > Hi all, > > Recently, we have tested the NGX reverse proxy by TestCenter and found a > segmentation fault in DNS module. > > BUG condition: > 1. The rn link two(or more) ctxs, As we know the end ctx get a timeout event. > 2. When

Re: new directive: "proxy_next_tries N"

2013-04-24 Thread Ruslan Ermilov
On Wed, Apr 24, 2013 at 04:32:20PM +0300, Shai Duvdevani wrote: > >> diff -ur /old/src/http/ngx_http_upstream.c > /new/src/http/ngx_http_upstream.c > >> --- /old/src/http/ngx_http_upstream.c2013-04-21 18:25:09.619437856 > + > >> +++ /new/src/http/ngx_http_upstream.c2013-04-23 21:29:06.1

[nginx] Upstream: allow to intercept responses with status 300.

2013-05-13 Thread Ruslan Ermilov
details: http://hg.nginx.com/nginx/rev/07e515e65984 branches: changeset: 5209:07e515e65984 user: Ruslan Ermilov date: Mon May 13 14:10:22 2013 +0400 description: Upstream: allow to intercept responses with status 300. This fixes an omission made in 9e7926763f87 where all 3XX

[nginx] Removed vestiges of SVN.

2013-05-15 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/09dbd363050a branches: changeset: 5212:09dbd363050a user: Ruslan Ermilov date: Thu Apr 25 17:41:45 2013 +0400 description: Removed vestiges of SVN. diffstat: misc/GNUmakefile | 31 ++- misc/README | 3

[nginx] Upstream keepalive: slightly simplified code.

2013-05-15 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/822b82191940 branches: changeset: 5213:822b82191940 user: Ruslan Ermilov date: Wed May 15 15:04:49 2013 +0400 description: Upstream keepalive: slightly simplified code. diffstat: src/http/modules/ngx_http_upstream_keepalive_module.c | 7

[nginx] Upstream: made the assignment more obvious.

2013-05-21 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/4a40163772a1 branches: changeset: 5216:4a40163772a1 user: Ruslan Ermilov date: Tue May 21 12:54:26 2013 +0400 description: Upstream: made the assignment more obvious. No functional changes. diffstat: src/http/ngx_http_upstream.c | 2 +- 1

[nginx] Upstream: slightly optimized ngx_http_upstream_process_h...

2013-05-21 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/ddba4e308ecc branches: changeset: 5217:ddba4e308ecc user: Ruslan Ermilov date: Tue May 21 12:54:27 2013 +0400 description: Upstream: slightly optimized ngx_http_upstream_process_header(). diffstat: src/http/ngx_http_upstream.c | 10

[nginx] Configure: fixed test of OS X atomic(3).

2013-05-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/09d7faaef16f branches: changeset: 5224:09d7faaef16f user: Ruslan Ermilov date: Thu May 23 10:23:21 2013 +0400 description: Configure: fixed test of OS X atomic(3). diffstat: auto/os/darwin | 2 +- 1 files changed, 1 insertions(+), 1

[nginx] Memcached: stricten header validation.

2013-05-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/a30ea5c6451d branches: changeset: 5226:a30ea5c6451d user: Ruslan Ermilov date: Thu May 23 16:26:10 2013 +0400 description: Memcached: stricten header validation. An invalid memcached reply that started with '\n' could cause segmenta

Re: HttpAccessModule and unix domain sockets

2013-05-23 Thread Ruslan Ermilov
ecial address > like set_real_ip_from does (see http://nginx.org/r/set_real_ip_from). # HG changeset patch # User Ruslan Ermilov # Date 1369338540 -14400 # Node ID d26c24c812846f2993947a0514efa9556d31f404 # Parent a30ea5c6451dcae3ce1e6d9eabe718c0222e5d9f Access: support for UNIX-dom

[nginx] Access: support for UNIX-domain client addresses (ticket...

2013-05-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/00dbfac67e48 branches: changeset: 5233:00dbfac67e48 user: Ruslan Ermilov date: Thu May 30 18:23:05 2013 +0400 description: Access: support for UNIX-domain client addresses (ticket #359). diffstat: src/http/modules/ngx_http_access_module.c

[nginx] OCSP stapling: fixed incorrect debug level.

2013-05-31 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/a855ae7e6377 branches: changeset: 5234:a855ae7e6377 user: Ruslan Ermilov date: Fri May 31 13:30:37 2013 +0400 description: OCSP stapling: fixed incorrect debug level. diffstat: src/event/ngx_event_openssl_stapling.c | 2 +- 1 files changed

[nginx] Simplified ngx_list_create().

2013-06-18 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/a82f305487c2 branches: changeset: 5253:a82f305487c2 user: Ruslan Ermilov date: Wed Jun 19 08:55:08 2013 +0400 description: Simplified ngx_list_create(). diffstat: src/core/ngx_list.c | 10 +- 1 files changed, 1 insertions(+), 9

[nginx] Upstream: updated list of ngx_event_connect_peer() retur...

2013-07-03 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/af60a210cb78 branches: changeset: 5261:af60a210cb78 user: Ruslan Ermilov date: Wed Jul 03 12:04:13 2013 +0400 description: Upstream: updated list of ngx_event_connect_peer() return values. ngx_http_upstream_get_keepalive_peer() may return

[nginx] Style: reuse one int variable in ngx_configure_listening...

2013-07-25 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/31690d934175 branches: changeset: 5282:31690d934175 user: Ruslan Ermilov date: Thu Jul 25 12:46:02 2013 +0400 description: Style: reuse one int variable in ngx_configure_listening_sockets(). No functional changes. diffstat: src/core

[nginx] On DragonFlyBSD, TCP_KEEPIDLE and TCP_KEEPINTVL are in m...

2013-07-25 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/6d73e0dc4f64 branches: changeset: 5283:6d73e0dc4f64 user: Ruslan Ermilov date: Thu Jul 25 12:46:03 2013 +0400 description: On DragonFlyBSD, TCP_KEEPIDLE and TCP_KEEPINTVL are in msecs. Based on a patch by Sepherosa Ziehau. diffstat: src

Re: [PATCH] DragonFlyBSD KEEPALIVE_TUNABLE

2013-07-25 Thread Ruslan Ermilov
On Wed, Jul 24, 2013 at 09:42:18PM +0800, Sepherosa Ziehau wrote: > On DragonFlyBSD, TCP_KEEPIDLE and TCP_KEEPINTVL are in milliseconds > instead of seconds. Following patch fixes this: > http://leaf.dragonflybsd.org/~sephe/ngx_keepalive.diff > > Best Regards, > sephe http://hg.nginx.org/nginx/r

[nginx] Upstream: reliably detect connection failures with SSL p...

2013-07-29 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/12b750d35162 branches: changeset: 5305:12b750d35162 user: Ruslan Ermilov date: Mon Jul 29 13:23:16 2013 +0400 description: Upstream: reliably detect connection failures with SSL peers. diffstat: src/http/ngx_http_upstream.c | 5 + 1

[nginx] Core: only resolve address families configured on the lo...

2013-08-04 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/ec8594b9bf11 branches: changeset: 5312:ec8594b9bf11 user: Ruslan Ermilov date: Mon Aug 05 10:55:59 2013 +0400 description: Core: only resolve address families configured on the local system. This is done by passing AI_ADDRCONFIG to getaddrinfo

Re: [PATCH] Core: guard use of AI_ADDRCONFIG

2013-08-05 Thread Ruslan Ermilov
t; Core: guard use of AI_ADDRCONFIG. > > AI_ADDRCONFIG is not available on all operating systems (e.g. OpenBSD) > and using it without a guard results in dropped getaddrinfo() support. > > Signed-off-by: Piotr Sikora Thanks. I suggest a different patch instead: # HG changeset

[nginx] Core: guard use of AI_ADDRCONFIG.

2013-08-05 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/0300d97c6084 branches: changeset: 5314:0300d97c6084 user: Ruslan Ermilov date: Mon Aug 05 13:44:56 2013 +0400 description: Core: guard use of AI_ADDRCONFIG. Some systems (notably NetBSD and OpenBSD) lack AI_ADDRCONFIG support. Reported by

Re: libgd recent version

2013-08-15 Thread Ruslan Ermilov
On Fri, Aug 09, 2013 at 10:21:25PM +0400, Михаил Монашёв wrote: > Здравствуйте. > > На странице > http://nginx.org/ru/docs/http/ngx_http_image_filter_module.html > указана устаревшая последняя версия libgd. В только что выложенной свежей версии документации нет упоминания о какой-либо конкретной

Re: [PATCH] Allow returning 407 status

2013-10-31 Thread Ruslan Ermilov
On Thu, Oct 31, 2013 at 11:10:19AM +0100, Raimon Grau wrote: > Hi, > > Nginx forbids returning 407 (Proxy Authorization Required). If we > allow it, we can play with headers and make it a regular http proxy. What do you mean by "forbids"? What's wrong with "return 407"? > With some nginx extern

Re: [PATCH] Allow returning 407 status

2013-10-31 Thread Ruslan Ermilov
On Thu, Oct 31, 2013 at 03:38:21PM +0100, Raimon Grau wrote: > On Thu, Oct 31, 2013 at 3:27 PM, Raimon Grau wrote: > > BUT, I have just tried 1.5.6, and it works there. In fact, the file > > where the patch applied changed quite a bit, so even the patch > > wouldn't be appliable for 1.5.6 > > Sor

Re: IPv6 support in resolver

2013-11-11 Thread Ruslan Ermilov
Hi, On Tue, Oct 29, 2013 at 04:06:35PM +0400, ToSHiC wrote: > Yesterday you had a talk on Highload++ and said about lack of IPv6 resolver > support. Do you have any news about my patch? This is just to let you know I've started to work on adding IPv6 support into nginx's resolver. __

Re: IPv6 & IPv4 backend with proxy_bind

2013-11-22 Thread Ruslan Ermilov
On Tue, Nov 19, 2013 at 09:09:34PM +1030, SplitIce wrote: > An IPv6 based fallback is not the only solution we want to support, > ultimately we would like to be able to load-balance between them as well. > An error_page based solution would not assist. > > I also get the feeling that such a hack w

Re: API inconsistencies

2013-11-25 Thread Ruslan Ermilov
On Mon, Nov 25, 2013 at 04:36:33PM +, Nick Kew wrote: > Is there a prescribed way for a module to deal with API changes > to support both older and newer versions? > > I can use constructs like: > > /* Get the remote address */ > #if OLDVERSION > len = ngx_sock_ntop(conn->sockaddr, ..

Re: API inconsistencies

2013-11-26 Thread Ruslan Ermilov
On Mon, Nov 25, 2013 at 05:49:18PM +, Nick Kew wrote: > On 25 Nov 2013, at 16:46, Ruslan Ermilov wrote: > > > nginx_version in src/core/nginx.h. > > Thanks. Seems to be 1.5.3 at the time of that commit, so I guess > the test I need is < 1005003 vs >= 1005003? &g

[nginx] Fixed null pointer dereference with $upstream_cache_last...

2013-12-03 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/b7b8e2fa7ebd branches: changeset: 5453:b7b8e2fa7ebd user: Ruslan Ermilov date: Tue Dec 03 15:11:24 2013 +0400 description: Fixed null pointer dereference with $upstream_cache_last_modified. diffstat: src/http/ngx_http_upstream.c | 3 ++- 1

[nginx] Configure: enable -Wconditional-uninitialized with clang.

2013-12-06 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/fedf777c6b24 branches: changeset: 5459:fedf777c6b24 user: Ruslan Ermilov date: Fri Dec 06 13:16:56 2013 +0400 description: Configure: enable -Wconditional-uninitialized with clang. diffstat: auto/cc/clang | 1 + 1 files changed, 1

[nginx] Fixed handling of UNIX-domain sockets.

2013-12-08 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/30e806b8636a branches: changeset: 5464:30e806b8636a user: Ruslan Ermilov date: Mon Dec 09 10:16:44 2013 +0400 description: Fixed handling of UNIX-domain sockets. When evaluating $local_port, $server_port, and $server_addr, UNIX-domain sockets

[nginx] Core: keep the length of the local sockaddr.

2013-12-08 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/1ab1cf63f885 branches: changeset: 5463:1ab1cf63f885 user: Ruslan Ermilov date: Mon Dec 09 10:14:51 2013 +0400 description: Core: keep the length of the local sockaddr. diffstat: src/core/ngx_connection.c | 11 --- src/core

Re: IPv6 & IPv4 backend with proxy_bind

2013-12-09 Thread Ruslan Ermilov
On Sat, Nov 23, 2013 at 12:15:28PM +1030, SplitIce wrote: > Attached is the patch, > > This is the first time I have created a variable or really done anything > inside the http request processing flow so feel free to let me know if > there is a better way to do something or if I have any edge cas

Re: IPv6 & IPv4 backend with proxy_bind

2013-12-09 Thread Ruslan Ermilov
On Mon, Dec 09, 2013 at 10:03:29PM +1030, SplitIce wrote: > Im not sure that patch would suit my needs, simply because most of the time > I am matching on the upstream address only and need it to work regardless > of the port (i.e a regex match on just the IP component). > > Perhaps your patch cou

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

2013-12-12 Thread Ruslan Ermilov
On Wed, Dec 11, 2013 at 10:10:44AM -0800, r...@sent.com wrote: > oops. not quite ... > > on systems where ld.so.conf does NOT point to the pcre path -- i.e, on > my production rather than dev boxes -- the RUNTIME link is incorrect, > > ldd objs/nginx | egrep -i "pcre" > libpcre.so.1 => /

[nginx] Resolver: fixed response processing.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/aebdca7e8f8f branches: changeset: 5470:aebdca7e8f8f user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Resolver: fixed response processing. Stricten response header checks: ensure that reserved bits are zeroes, and that the

[nginx] Resolver: removed unnecessary casts.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/b2fc466a11a7 branches: changeset: 5469:b2fc466a11a7 user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Resolver: removed unnecessary casts. diffstat: src/core/ngx_resolver.c | 4 ++-- 1 files changed, 2 insertions(+), 2

[nginx] Resolver: improved code readability.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/5c410d6ca7dd branches: changeset: 5468:5c410d6ca7dd user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Resolver: improved code readability. Renamed ngx_resolver_query_t to ngx_resolver_hdr_t as it describes the header that

[nginx] Resolver: fixes in PTR processing.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/ab493c60d9ff branches: changeset: 5472:ab493c60d9ff user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Resolver: fixes in PTR processing. Verify that class of RR is "IN". Verify that RR data length is non-zero.

[nginx] Resolver: fixed indentation.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/b43b02bb54db branches: changeset: 5474:b43b02bb54db user: Ruslan Ermilov date: Fri Dec 13 19:22:44 2013 +0400 description: Resolver: fixed indentation. diffstat: src/core/ngx_resolver.c | 48

[nginx] Resolver: fixes in A processing.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/9c96782d9d05 branches: changeset: 5471:9c96782d9d05 user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Resolver: fixes in A processing. Verify that class of RR is "IN". Verify that RR data length is exactly f

[nginx] Core: externalized ngx_cmp_sockaddr().

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/d39ef821d03e branches: changeset: 5473:d39ef821d03e user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Core: externalized ngx_cmp_sockaddr(). It's also extended with the "cmp_port" argument to indicate wheth

[nginx] Changed resolver API to use ngx_addr_t.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/07dd5bd222ac branches: changeset: 5475:07dd5bd222ac user: Ruslan Ermilov date: Fri Dec 06 14:30:27 2013 +0400 description: Changed resolver API to use ngx_addr_t. diffstat: src/core/ngx_resolver.c | 240

[nginx] The "ipv6=" boolean parameter of the "resolver" directive.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/3cb3175a6fef branches: changeset: 5478:3cb3175a6fef user: Ruslan Ermilov date: Mon Dec 09 10:53:30 2013 +0400 description: The "ipv6=" boolean parameter of the "resolver" directive. When set to "off", only IPv4 a

[nginx] Resolver: lookups are case-insensitive.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/c0d6eae5a1c5 branches: changeset: 5479:c0d6eae5a1c5 user: Ruslan Ermilov date: Fri Dec 13 20:49:52 2013 +0400 description: Resolver: lookups are case-insensitive. diffstat: src/core/ngx_resolver.c | 8 +--- 1 files changed, 5 insertions

[nginx] Resolver: implemented IPv6 address to name resolving.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/950c9ed3e66f branches: changeset: 5476:950c9ed3e66f user: Ruslan Ermilov date: Fri Dec 06 14:30:28 2013 +0400 description: Resolver: implemented IPv6 address to name resolving. diffstat: src/core/ngx_resolver.c | 484

[nginx] Resolver: implemented IPv6 name to address resolving.

2013-12-13 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/98876ce2a7fd branches: changeset: 5477:98876ce2a7fd user: Ruslan Ermilov date: Mon Dec 09 10:53:28 2013 +0400 description: Resolver: implemented IPv6 name to address resolving. diffstat: src/core/ngx_resolver.c| 487

Re: IPv6 support in resolver

2013-12-16 Thread Ruslan Ermilov
On Tue, Nov 12, 2013 at 08:23:41AM +0400, Ruslan Ermilov wrote: > On Tue, Oct 29, 2013 at 04:06:35PM +0400, ToSHiC wrote: > > Yesterday you had a talk on Highload++ and said about lack of IPv6 resolver > > support. Do you have any news about my patch? > > This is just to let

[nginx] Resolver: use minimum TTL for caching (ticket #329).

2013-12-19 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/8958656a8060 branches: changeset: 5485:8958656a8060 user: Ruslan Ermilov date: Mon Dec 16 19:12:23 2013 +0400 description: Resolver: use minimum TTL for caching (ticket #329). diffstat: src/core/ngx_resolver.c | 13 +++-- 1 files

Re: [PATCH v2] Make ngx_http_parse_unsafe_uri() to be able to unescape uri

2013-12-20 Thread Ruslan Ermilov
abla/.." case should be considered unsafe. But as Maxim noted privately, we should probably consider all URIs not starting from "/" to be unsafe. # HG changeset patch # User Ruslan Ermilov # Date 1387556000 -14400 # Fri Dec 20 20:13:20 2013 +0400 # Node ID ef3ae992a4e34cbf725a

[nginx] Fixed the first argument to getsockopt().

2013-12-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/c51b9491b0bd branches: changeset: 5488:c51b9491b0bd user: Ruslan Ermilov date: Thu Dec 19 13:43:18 2013 +0400 description: Fixed the first argument to getsockopt(). While here, always initialize the last argument. diffstat: src/core

[nginx] Upstream: keep $upstream_http_x_accel_redirect intact.

2013-12-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/6d357b2a9d6e branches: changeset: 5489:6d357b2a9d6e user: Ruslan Ermilov date: Mon Dec 23 18:11:46 2013 +0400 description: Upstream: keep $upstream_http_x_accel_redirect intact. When processing the X-Accel-Redirect header, the value of the

[nginx] Dav: emit a warning about unsafe URI.

2013-12-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/5c52ff68f380 branches: changeset: 5492:5c52ff68f380 user: Ruslan Ermilov date: Mon Dec 23 18:12:03 2013 +0400 description: Dav: emit a warning about unsafe URI. diffstat: src/http/modules/ngx_http_dav_module.c | 2 +- 1 files changed, 1

[nginx] Teach ngx_http_parse_unsafe_uri() how to unescape URIs.

2013-12-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/74bfa803a5aa branches: changeset: 5491:74bfa803a5aa user: Ruslan Ermilov date: Mon Dec 23 18:12:00 2013 +0400 description: Teach ngx_http_parse_unsafe_uri() how to unescape URIs. This fixes handling of escaped URIs in X-Accel-Redirect (ticket

[nginx] Detect more unsafe URIs in ngx_http_parse_unsafe_uri().

2013-12-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/b141a7627ac6 branches: changeset: 5490:b141a7627ac6 user: Ruslan Ermilov date: Mon Dec 23 18:11:56 2013 +0400 description: Detect more unsafe URIs in ngx_http_parse_unsafe_uri(). The following URIs were considered safe: "..", &qu

[nginx] Fixed setting of content type in some cases.

2013-12-27 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/2cfc095a607a branches: changeset: 5497:2cfc095a607a user: Ruslan Ermilov date: Fri Dec 27 19:40:04 2013 +0400 description: Fixed setting of content type in some cases. This fixes content type set in stub_status and autoindex responses to be

Re: [PATCH] Resolver: added support for domain names with a trailing dot

2014-01-10 Thread Ruslan Ermilov
On Wed, Jan 08, 2014 at 11:59:42AM -0800, Yichun Zhang (agentzh) wrote: > We've noticed that the builtin resolver in Nginx cannot handle domain > names with a trailing dot (like "agentzh.org.") and just return the > error "Host not found". The following patch attempts a fix. There's no such thing

[nginx] Resolver: added support for domain names with a trailing...

2014-01-14 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/d091d16ed398 branches: changeset: 5505:d091d16ed398 user: Yichun Zhang date: Fri Jan 10 11:22:14 2014 -0800 description: Resolver: added support for domain names with a trailing dot. diffstat: src/core/ngx_resolver.c | 4 1 files change

Re: [PATCH] Resolver: added support for domain names with a trailing dot

2014-01-14 Thread Ruslan Ermilov
On Mon, Jan 13, 2014 at 05:58:39PM +0400, Maxim Dounin wrote: > On Fri, Jan 10, 2014 at 12:13:26PM -0800, Yichun Zhang (agentzh) wrote: > > > Hello! > > > > On Fri, Jan 10, 2014 at 11:10 AM, Ruslan Ermilov wrote: > > > > > > There's no such thing

Re: Rewrite handling order

2014-01-14 Thread Ruslan Ermilov
[i].handlers.nelts - 1; j >=0; j--) { > > > ph->checker = checker; > > > ph->handler = h[j]; > > > ph->next = n; > > > ph++; > > > } > > > } > > > >

[nginx] Mail: fixed passing of IPv6 client address in XCLIENT.

2014-01-17 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/bb3dc21c89ef branches: changeset: 5522:bb3dc21c89ef user: Ruslan Ermilov date: Fri Jan 17 22:06:04 2014 +0400 description: Mail: fixed passing of IPv6 client address in XCLIENT. diffstat: src/mail/ngx_mail_proxy_module.c | 33

Re: v1.5.9 compiled size is 8x larger than v1.5.8

2014-01-22 Thread Ruslan Ermilov
On Wed, Jan 22, 2014 at 02:56:38PM -0500, Jim Popovitch wrote: > I'm seeing a strange problem with v1.5.9, the compiled binary is 8 > times larger than it was on v1.5.8. My build environment (debian) is > the same that I've used for v1.5.8. > > Production: > ~$ nginx -V > nginx version: nginx/1.

[nginx] Configure: enabled -Werror for clang.

2014-01-27 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/c86dd32573c0 branches: changeset: 5539:c86dd32573c0 user: Ruslan Ermilov date: Tue Jan 28 00:31:31 2014 +0400 description: Configure: enabled -Werror for clang. Modern clang versions seem to no longer produce warnings for system headers on

Re: [PATCH] Core: handle getsockopt(TCP_FASTOPEN) failures.

2014-01-29 Thread Ruslan Ermilov
On Tue, Jan 28, 2014 at 08:19:57PM -0800, Piotr Sikora wrote: > # HG changeset patch > # User Piotr Sikora > # Date 1390968940 28800 > # Tue Jan 28 20:15:40 2014 -0800 > # Node ID ae13ab8f53fe451d2201a68091ddecc3d36d582d > # Parent fdb67cfc957d110ea887961cc8c08a590df5f62c > Core: handle gets

Re: [nginx] SSL: support ALPN (IETF's successor to NPN).

2014-01-30 Thread Ruslan Ermilov
On Wed, Jan 29, 2014 at 03:51:50PM +, Valentin Bartenev wrote: > details: http://hg.nginx.org/nginx/rev/01e2a5bcdd8f > branches: > changeset: 5545:01e2a5bcdd8f > user: Piotr Sikora > date: Tue Jan 28 15:33:49 2014 -0800 > description: > SSL: support ALPN (IETF's successor to NPN)

[nginx] Proxy: fixed upstream search by proxy_pass with variables.

2014-01-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/f385349d584b branches: changeset: 5546:f385349d584b user: Ruslan Ermilov date: Thu Jan 30 18:57:11 2014 +0400 description: Proxy: fixed upstream search by proxy_pass with variables. If "proxy_pass" is specified with variables, the

[nginx] Fixed a compile warning introduced by 01e2a5bcdd8f.

2014-01-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/2e40188f83ef branches: changeset: 5547:2e40188f83ef user: Ruslan Ermilov date: Thu Jan 30 19:13:12 2014 +0400 description: Fixed a compile warning introduced by 01e2a5bcdd8f. On systems with OpenSSL that has NPN support but lacks ALPN support

Re: [PATCH] Use ngx_socket_errno where appropriate.

2014-01-30 Thread Ruslan Ermilov
Hi Piotr, On Thu, Jan 30, 2014 at 04:16:04PM -0800, Piotr Sikora wrote: > # HG changeset patch > # User Piotr Sikora > # Date 1391126566 28800 > # Thu Jan 30 16:02:46 2014 -0800 > # Node ID fe4a9b7ca5985b0bde46fa78bd96de80e03d988b > # Parent 2e40188f83ef5bf1ae5afe0dd445689049f46a5c > Use ng

Re: [nginx] SSL: support ALPN (IETF's successor to NPN).

2014-01-31 Thread Ruslan Ermilov
On Thu, Jan 30, 2014 at 12:15:49PM -0800, Piotr Sikora wrote: > Hey Ruslan, > > > This change breaks compilation with clang on systems > > where OpenSSL doesn't have ALPN support: > > Good catch! Sorry for introducing this (even though it's clearly a > false positive)... I usually compile my ALPN

Re: [PATCH] Use ngx_socket_errno where appropriate.

2014-02-05 Thread Ruslan Ermilov
On Mon, Feb 03, 2014 at 02:22:39PM -0800, Piotr Sikora wrote: > Hey, > > > Note that I still agree with Ruslan's comments to your patch, use > > of ngx_socket_errno to check errors from ioctl() / fcntl() in > > unix-specific code looks unneeded. And in case of eventfd - it > > looks certainly wro

[nginx] Range filter: fixed duplicate charset.

2014-02-10 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/eeb3c2719147 branches: changeset: 5558:eeb3c2719147 user: Ruslan Ermilov date: Tue Feb 04 17:13:35 2014 +0400 description: Range filter: fixed duplicate charset. If a proxied response had charset in Content-Type, the charset was duplicated in

Re: [PATCH] Upstream: fix $upstream_status variable

2014-02-12 Thread Ruslan Ermilov
On Tue, Feb 11, 2014 at 09:57:55PM -0800, Piotr Sikora wrote: > # HG changeset patch > # User Piotr Sikora > # Date 1392184482 28800 > # Tue Feb 11 21:54:42 2014 -0800 > # Node ID 3f21f5b57864af853ad097a113e419086a603aae > # Parent cff36d2d7fe6db1baa9d44ed30ebd26b20c05d06 > Upstream: fix $up

[nginx] Upstream: fix $upstream_status variable.

2014-02-12 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/d15822784cf9 branches: changeset: 5575:d15822784cf9 user: Piotr Sikora date: Tue Feb 11 21:54:42 2014 -0800 description: Upstream: fix $upstream_status variable. Previously, upstream's status code was overwritten with cached response's status c

[nginx] Access: supplemented the obfuscated code with a comment.

2014-02-19 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/06c227e9edd0 branches: changeset: 5580:06c227e9edd0 user: Ruslan Ermilov date: Wed Feb 19 21:45:27 2014 +0400 description: Access: supplemented the obfuscated code with a comment. diffstat: src/http/modules/ngx_http_access_module.c | 6

[nginx] Resolver: properly handle connect() failures.

2014-02-20 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/545a4d393e2f branches: changeset: 5582:545a4d393e2f user: Ruslan Ermilov date: Thu Feb 20 17:27:09 2014 +0400 description: Resolver: properly handle connect() failures. If initial attempt to connect() the UDP socket failed, e.g. due to network

[nginx] Core: allocate enough memory to hold IPv6 text address p...

2014-02-22 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/f47c844acbd4 branches: changeset: 5583:f47c844acbd4 user: Ruslan Ermilov date: Sat Feb 22 12:08:31 2014 +0400 description: Core: allocate enough memory to hold IPv6 text address plus port. diffstat: src/core/ngx_connection.c | 2 +- 1 files

[nginx] Documented the switch from java XSLScript to xslscript.pl.

2014-04-21 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/001beb963d86 branches: changeset: 5663:001beb963d86 user: Ruslan Ermilov date: Mon Apr 21 13:48:41 2014 +0400 description: Documented the switch from java XSLScript to xslscript.pl. diffstat: misc/README | 2 +- 1 files changed, 1

[nginx] Upstream: for ssl name, non-aligned memory allocation is...

2014-04-22 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/16405e02e612 branches: changeset: 5667:16405e02e612 user: Ruslan Ermilov date: Tue Apr 22 18:56:49 2014 +0400 description: Upstream: for ssl name, non-aligned memory allocation is enough. diffstat: src/http/ngx_http_upstream.c | 2 +- 1

Re: [patch] Properly terminate line-endings in $ssl_client_cert

2014-05-05 Thread Ruslan Ermilov
On Sun, May 04, 2014 at 03:44:47PM +1000, Matt Palmer wrote: > The below patch is a small one, to make the common use-case for > $ssl_client_cert (including it in an HTTP request header) > protocol-compliant. Some receiving webservers don't like a plain '\n' in > the requests they receive. > > I

[nginx] Style: use %N instead of '\n' where appropriate.

2014-05-14 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/0cbefdcf82a6 branches: changeset: 5685:0cbefdcf82a6 user: Ruslan Ermilov date: Wed May 14 22:26:30 2014 +0400 description: Style: use %N instead of '\n' where appropriate. diffstat: src/http/modules/ngx_http_proxy_module.c | 2 +-

[nginx] Core: use '\r' for CR and '\n' for LF definitions.

2014-05-14 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/bc98b0f11bdd branches: changeset: 5684:bc98b0f11bdd user: Ruslan Ermilov date: Wed May 14 22:26:05 2014 +0400 description: Core: use '\r' for CR and '\n' for LF definitions. diffstat: src/core/ngx_core.h | 6 +++---

[nginx] Configure: the --build= option.

2014-05-20 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/1209b8a7b077 branches: changeset: 5701:1209b8a7b077 user: Ruslan Ermilov date: Tue May 20 16:10:07 2014 +0400 description: Configure: the --build= option. If set, its value is output in "nginx -v" and in the error log. diffst

[nginx] Mail: output client port number on client connects (tick...

2014-05-21 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/d5b8ee9f2201 branches: changeset: 5705:d5b8ee9f2201 user: Ruslan Ermilov date: Thu May 22 00:16:17 2014 +0400 description: Mail: output client port number on client connects (ticket #531). diffstat: src/mail/ngx_mail_handler.c | 8

[nginx] Core: output client port number when logging accept event.

2014-05-21 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/524741fd50ed branches: changeset: 5704:524741fd50ed user: Ruslan Ermilov date: Thu May 22 00:16:09 2014 +0400 description: Core: output client port number when logging accept event. diffstat: src/event/ngx_event_accept.c | 14

[nginx] Events: use eventfd() instead of syscall(SYS_eventfd) if...

2014-05-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/31dd63dcb9ea branches: changeset: 5707:31dd63dcb9ea user: Ruslan Ermilov date: Fri May 23 16:37:05 2014 +0400 description: Events: use eventfd() instead of syscall(SYS_eventfd) if possible. This fixes --with-file-aio support on systems that

Re: [PATCH] Access log: fix default value, broken by cb308813b453

2014-06-03 Thread Ruslan Ermilov
On Tue, Jun 03, 2014 at 10:54:49AM -0700, Piotr Sikora wrote: > # HG changeset patch > # User Piotr Sikora > # Date 1401818028 25200 > # Tue Jun 03 10:53:48 2014 -0700 > # Node ID 7f425d67f91ae3966b4f31b33dcd0386977a97a4 > # Parent c46657e391a3710c4ea20f312d46ff6566d80aef > Access log: fix d

[nginx] Upstream: simplified some code that accesses peers.

2014-06-12 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/ab540dd44528 branches: changeset: 5720:ab540dd44528 user: Ruslan Ermilov date: Thu Jun 12 21:13:24 2014 +0400 description: Upstream: simplified some code that accesses peers. No functional changes. diffstat: src/http

  1   2   3   4   5   6   >