[PATCH] The "sort=" parameter of the "resolver" directive

2022-02-22 Thread Ruslan Ermilov
src/core/ngx_resolver.c | 38 +- src/core/ngx_resolver.h | 5 + 2 files changed, 42 insertions(+), 1 deletions(-) # HG changeset patch # User Ruslan Ermilov # Date 1645589387 -10800 # Wed Feb 23 07:09:47 2022 +0300 # Node ID

Re: [PATCH] Add ipv4=off option in resolver like ipv6=off (ticket #1330)

2022-02-22 Thread Ruslan Ermilov
On Wed, Feb 16, 2022 at 03:30:55PM +0300, Ruslan Ermilov wrote: > Hi Lukas, > > On Wed, Jan 19, 2022 at 07:47:44PM +0100, Lukas Lihotzki via nginx-devel > wrote: > > # HG changeset patch > > # User Lukas Lihotzki > > # Date 1642618053 -3600 > > # Wed J

Re: [PATCH] Add ipv4=off option in resolver like ipv6=off (ticket #1330)

2022-02-16 Thread Ruslan Ermilov
r fix. There's a number of problems in your patch. Please try this one instead: # HG changeset patch # User Ruslan Ermilov # Date 1644873563 -10800 # Tue Feb 15 00:19:23 2022 +0300 # Node ID 5d2cb60a78dd32a10a0010ccff39974fd7605867 # Parent 1add55d236522616ce34ffaa4dc697a76d3d41a4 Th

[nginx] Moved Huffman coding out of HTTP/2.

2021-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/336084ff943b branches: changeset: 7977:336084ff943b user: Ruslan Ermilov date: Tue Dec 21 07:54:16 2021 +0300 description: Moved Huffman coding out of HTTP/2. ngx_http_v2_huff_decode.c and ngx_http_v2_huff_encode.c are renamed

[nginx] Win32: use only preallocated memory in send/recv chain functions.

2021-07-05 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/ecf2a9002b37 branches: changeset: 7887:ecf2a9002b37 user: Ruslan Ermilov date: Mon Jul 05 13:26:49 2021 +0300 description: Win32: use only preallocated memory in send/recv chain functions. The ngx_wsasend_chain() and ngx_wsarecv_chain

[nginx] Use only preallocated memory in ngx_readv_chain() (ticket #1408).

2021-07-05 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/7f5e3595caff branches: changeset: 7886:7f5e3595caff user: Ruslan Ermilov date: Mon Jul 05 13:09:23 2021 +0300 description: Use only preallocated memory in ngx_readv_chain() (ticket #1408). In d1bde5c3c5d2, the number of preallocated iovec's

[nginx] Location header escaping in redirects (ticket #882).

2021-05-24 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/1bde031b59ff branches: changeset: 7848:1bde031b59ff user: Ruslan Ermilov date: Mon May 24 21:55:20 2021 +0300 description: Location header escaping in redirects (ticket #882). The header is escaped in redirects based on request URI

[nginx] Core: fixed comment about msie_refresh escaping.

2021-05-19 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/5772da03faf8 branches: changeset: 7845:5772da03faf8 user: Ruslan Ermilov date: Wed May 19 16:24:13 2021 +0300 description: Core: fixed comment about msie_refresh escaping. After 12a656452ad1, the "%" character is no long

Re: [PATCH] Stream: added config option for TCP_FASTOPEN

2021-05-17 Thread Ruslan Ermilov
} > + > + if (ls->fastopen >= 0) { Here I changed the comparison to -1 to match the initial value. I also relocated code inserts to match the http code better. # HG changeset patch # User Ruslan Ermilov # Date 1620909454 -10800 # Thu May 13 15:37:34 2021 +0300 # N

Re: PATCH: Initialize 'ch' with 'ngx_memzero' to prevent the use of uninitialized bytes.

2021-04-22 Thread Ruslan Ermilov
On Thu, Apr 15, 2021 at 08:59:16AM +, 囧 尼 wrote: > # HG changeset patch > # User Johnny Wang > # Date 1618472983 -28800 > # Thu Apr 15 15:49:43 2021 +0800 > # Node ID a5903fe55622e839906e9544c1a08a66c1e0cf91 > # Parent b56c45e3bd5029f98e1e847eebad75430e2cca27 > Initialize 'ch' with

[nginx] Restored zeroing of ngx_channel_t in ngx_pass_open_channel().

2021-04-22 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/f2ff291bbdac branches: changeset: 7830:f2ff291bbdac user: Ruslan Ermilov date: Thu Apr 22 16:12:52 2021 +0300 description: Restored zeroing of ngx_channel_t in ngx_pass_open_channel(). Due to structure's alignment, some uninitialized memory

[nginx] Removed "ch" argument from ngx_pass_open_channel().

2021-03-10 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/0215ec9aaa8a branches: changeset: 7802:0215ec9aaa8a user: Ruslan Ermilov date: Thu Mar 11 09:58:45 2021 +0300 description: Removed "ch" argument from ngx_pass_open_channel(). diffstat: src/os/unix/ngx_process_cyc

[nginx] Proxy: variables support in "proxy_cookie_flags" flags.

2021-03-01 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/529b73f75d19 branches: changeset: 7786:529b73f75d19 user: Ruslan Ermilov date: Tue Mar 02 00:58:24 2021 +0300 description: Proxy: variables support in "proxy_cookie_flags" flags. diffstat: src/http/modules/ngx_http_proxy_modu

[nginx] Configure: marked top-level make targets as phony.

2021-02-20 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/549b13cd793b branches: changeset: 7778:549b13cd793b user: Ruslan Ermilov date: Sat Feb 20 12:44:26 2021 +0300 description: Configure: marked top-level make targets as phony. Reported by Thibault Nélis. diffstat: auto/init| 2 ++ auto

[nginx] Version bump.

2021-02-20 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/5ef14498edf7 branches: changeset: :5ef14498edf7 user: Ruslan Ermilov date: Sat Feb 20 12:44:07 2021 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines

[nginx] HTTP/2: lingering close changed to handle NGX_AGAIN.

2021-02-02 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/519b55453c45 branches: changeset: 7765:519b55453c45 user: Ruslan Ermilov date: Mon Feb 01 16:42:50 2021 +0300 description: HTTP/2: lingering close changed to handle NGX_AGAIN. This part somehow slipped away from c5840ca2063d. While

[nginx] SSL: fixed SSL shutdown on lingering close.

2020-12-07 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/7efae6b4cfb0 branches: changeset: 7751:7efae6b4cfb0 user: Ruslan Ermilov date: Tue Dec 08 01:43:36 2020 +0300 description: SSL: fixed SSL shutdown on lingering close. Ensure c->recv is properly reset to ngx_recv if SSL_shutdown() blo

[nginx] Upstream: excluded down servers from the next_upstream tries.

2020-11-26 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/90cc7194e993 branches: changeset: 7750:90cc7194e993 user: Ruslan Ermilov date: Fri Nov 27 00:01:20 2020 +0300 description: Upstream: excluded down servers from the next_upstream tries. Previously, the number of next_upstream tries included

[nginx] Version bump.

2020-11-26 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/ac09a57ec50d branches: changeset: 7749:ac09a57ec50d user: Ruslan Ermilov date: Thu Nov 26 23:46:59 2020 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines

[nginx] Removed dead code from ngx_http_set_keepalive().

2020-11-06 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/ed17a2a95c8d branches: changeset: 7737:ed17a2a95c8d user: Ruslan Ermilov date: Fri Nov 06 23:44:47 2020 +0300 description: Removed dead code from ngx_http_set_keepalive(). The code removed became dead after 98f03cd8d6cc (0.8.14), circa when

[nginx] SSL: fixed non-working SSL shutdown on lingering close.

2020-11-06 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/554c6ae25ffc branches: changeset: 7738:554c6ae25ffc user: Ruslan Ermilov date: Fri Nov 06 23:44:54 2020 +0300 description: SSL: fixed non-working SSL shutdown on lingering close. When doing lingering close, the socket was first shut down

[nginx] Cpp test: added stream.

2020-10-12 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/f1e6f65ddfeb branches: changeset: 7727:f1e6f65ddfeb user: Ruslan Ermilov date: Tue Oct 13 07:44:09 2020 +0300 description: Cpp test: added stream. diffstat: src/misc/ngx_cpp_test_module.cpp | 2 ++ 1 files changed, 2 insertions(+), 0

[nginx] Proxy: changed interface of some internal functions.

2020-09-28 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/5c7917292b29 branches: changeset: 7715:5c7917292b29 user: Ruslan Ermilov date: Sun Sep 27 23:21:10 2020 +0300 description: Proxy: changed interface of some internal functions. This is in preparation for the next change. Also, moved

[nginx] Proxy: added the "proxy_cookie_flags" directive.

2020-09-28 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/d6a5e14aa3e4 branches: changeset: 7716:d6a5e14aa3e4 user: Ruslan Ermilov date: Sun Sep 27 23:21:11 2020 +0300 description: Proxy: added the "proxy_cookie_flags" directive. diffstat: src/http/modules/ngx_http_proxy_modul

[nginx] Proxy: strengthen syntax checking for some directives.

2020-09-28 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/8dbc9ee97998 branches: changeset: 7714:8dbc9ee97998 user: Ruslan Ermilov date: Sun Sep 27 23:21:09 2020 +0300 description: Proxy: strengthen syntax checking for some directives. The "false" parameter of the proxy_redirect

[nginx] Core: enclosed parameters of the ngx_buf.h macros in parentheses.

2020-07-27 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/2f9214713666 branches: changeset: 7688:2f9214713666 user: balus date: Mon Jul 27 13:21:51 2020 +0300 description: Core: enclosed parameters of the ngx_buf.h macros in parentheses. diffstat: src/core/ngx_buf.h | 20 ++-- 1

Re: [PATCH] Core: enclosed parameters of macros in parentheses.

2020-07-24 Thread Ruslan Ermilov
On Sat, Jul 18, 2020 at 08:09:30PM +0800, balus wrote: > # HG changeset patch > # User balus # Date 1595073121 -28800 > # Sat Jul 18 19:52:01 2020 +0800 > # Node ID 92d9878c0c7549345f0a144cd81a6b6d45f21fc6 > # Parent 32a343635b50662979975e1204417bb1fc7e1b1f > Core: enclosed parameters of macros

Re: Core: close pid file while writing it failed.

2020-07-21 Thread Ruslan Ermilov
On Mon, Jun 22, 2020 at 06:09:14PM +0300, Ruslan Ermilov wrote: > On Thu, May 21, 2020 at 09:45:24PM +0800, Jim T wrote: > > Hello! > > > > As far as I understand it, `ngx_create_pidfile` is a function that works > > independently. There is no action to close the

[nginx] Core: close PID file when writing fails.

2020-07-21 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/4f30f75dbdf3 branches: changeset: 7685:4f30f75dbdf3 user: Ruslan Ermilov date: Tue Jul 21 20:34:29 2020 +0300 description: Core: close PID file when writing fails. Reported by Jinhua Tan. diffstat: src/core/ngx_cycle.c | 7 +-- 1

[nginx] HTTP/2: lingering close after GOAWAY.

2020-07-03 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/c5840ca2063d branches: changeset: 7673:c5840ca2063d user: Ruslan Ermilov date: Fri Jul 03 16:16:47 2020 +0300 description: HTTP/2: lingering close after GOAWAY. After sending the GOAWAY frame, a connection is now closed using the lingering

Re: [PATCH] Fixed potential leak of temp pool.

2020-06-26 Thread Ruslan Ermilov
.addr); > -return NGX_ERROR; > +goto failed; > } > > if (rc == NGX_BUSY) { > _______ > nginx-devel mailing list > nginx-devel@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx-devel -- Ruslan Ermilov Assume

[nginx] Fixed potential leak of temp pool.

2020-06-26 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/7e0719fb528b branches: changeset: 7671:7e0719fb528b user: Eran Kornblau date: Mon Jun 15 03:58:31 2020 -0400 description: Fixed potential leak of temp pool. In case ngx_hash_add_key() fails, need to goto failed instead of returning, so that

Re: Core: close pid file while writing it failed.

2020-06-22 Thread Ruslan Ermilov
On Thu, May 21, 2020 at 09:45:24PM +0800, Jim T wrote: > Hello! > > As far as I understand it, `ngx_create_pidfile` is a function that works > independently. There is no action to close the pid file externally, so we > need to close the pid file when the writing it failed. There are also >

Re: [PATCH] Ensured SIGQUIT deletes listening UNIX socket files.

2020-06-01 Thread Ruslan Ermilov
Hi there, On Mon, Apr 27, 2020 at 04:26:31PM -0700, Thibault Charbonnier wrote: > On 4/25/20 6:12 PM, Maxim Dounin wrote: > > A better approach might be to check parent's pid instead, much > > like we do when handling the changebin signal on unix (see > > src/os/unix/ngx_process.c). > > Great!

[nginx] Fixed SIGQUIT not removing listening UNIX sockets (closes #753).

2020-06-01 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/7cbf6389194b branches: changeset: 7663:7cbf6389194b user: Ruslan Ermilov date: Mon Jun 01 22:31:23 2020 +0300 description: Fixed SIGQUIT not removing listening UNIX sockets (closes #753). Listening UNIX sockets were not removed on graceful

[nginx] Fixed removing of listening UNIX sockets when "changing binary".

2020-06-01 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/9c038f5e0464 branches: changeset: 7662:9c038f5e0464 user: Ruslan Ermilov date: Mon Jun 01 20:19:27 2020 +0300 description: Fixed removing of listening UNIX sockets when "changing binary". When changing binary, sending a SIGTERM

[nginx] gRPC: RST_STREAM(NO_ERROR) handling (ticket #1792).

2020-04-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/2096b21fcd10 branches: changeset: 7646:2096b21fcd10 user: Ruslan Ermilov date: Thu Apr 23 15:10:24 2020 +0300 description: gRPC: RST_STREAM(NO_ERROR) handling (ticket #1792). As per https://tools.ietf.org/html/rfc7540#section-8.1, : A server

[nginx] gRPC: WINDOW_UPDATE after END_STREAM handling (ticket #1797).

2020-04-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/716eddd74bc2 branches: changeset: 7647:716eddd74bc2 user: Ruslan Ermilov date: Thu Apr 23 15:10:26 2020 +0300 description: gRPC: WINDOW_UPDATE after END_STREAM handling (ticket #1797). As per https://tools.ietf.org/html/rfc7540#section-6.9

[nginx] Version bump.

2020-04-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/ed3a10cf88e8 branches: changeset: 7645:ed3a10cf88e8 user: Ruslan Ermilov date: Thu Apr 23 15:10:21 2020 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines

[nginx] The new auth_delay directive for delaying unauthorized requests.

2020-04-07 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/681b78a98a52 branches: changeset: 7638:681b78a98a52 user: Ruslan Ermilov date: Wed Apr 08 01:02:17 2020 +0300 description: The new auth_delay directive for delaying unauthorized requests. The request processing is delayed by a timer. Since

[nginx] Auth basic: explicitly zero out password buffer.

2020-03-16 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/0cb942c1c1aa branches: changeset: 7637:0cb942c1c1aa user: Ruslan Ermilov date: Fri Mar 13 02:12:10 2020 +0300 description: Auth basic: explicitly zero out password buffer. diffstat: src/http/modules/ngx_http_auth_basic_module.c | 37

[nginx] Version bump.

2020-03-16 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/2a9aeb3426c3 branches: changeset: 7636:2a9aeb3426c3 user: Ruslan Ermilov date: Mon Mar 16 12:41:41 2020 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines

Re: [PATCH] Keep remote port unchanged if real address doesn't contain a port.

2020-01-20 Thread Ruslan Ermilov
On Mon, Jan 20, 2020 at 08:27:42PM +0800, Zexuan Luo wrote: > # HG changeset patch > # User spacewander > # Date 1579523127 -28800 > # Mon Jan 20 20:25:27 2020 +0800 > # Branch ident > # Node ID 86dbfc59e9c01608244c4fdc0d9a87fd9d330648 > # Parent 4fb5603514f2d324c50cb7e12c6ed0dc8935de0f >

[nginx] HTTP/2: removed ngx_debug_point() call.

2020-01-14 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/8a7b59347401 branches: changeset: 7618:8a7b59347401 user: Daniil Bondarev date: Tue Jan 14 14:20:08 2020 +0300 description: HTTP/2: removed ngx_debug_point() call.      With the recent change to prevent frames flood in d4448892a294, nginx will

Re: nginx - get value of the header - x_forwarded_for in Nginx module (Naxsi)

2019-12-25 Thread Ruslan Ermilov
On Tue, Dec 24, 2019 at 08:00:26PM +0100, Marcin Kozlowski wrote: > Thanks. > > Works. For the reference, this is the code I used: > > ngx_uint_t n; > ngx_table_elt_t **h; > ngx_array_t a; > a = req->headers_in.x_forwarded_for; > n = a.nelts; > h = a.elts; > > > for (i = 0; i

Re: nginx - get value of the header - x_forwarded_for in Nginx module (Naxsi)

2019-12-24 Thread Ruslan Ermilov
On Mon, Dec 23, 2019 at 11:04:43PM +0100, Marcin Kozlowski wrote: > Hi List, > > How to get x_forwarded_for sent in the request in NGINX module (NAXSI in > particular): > > My attempt: > > ngx_log_error(NGX_LOG_ERR, req->connection->log, > 0, "test %s", (char

[nginx] Update manpage, sort command line options.

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/4718a646187a branches: changeset: 7608:4718a646187a user: Sergey A. Osokin date: Mon Dec 23 18:56:21 2019 +0300 description: Update manpage, sort command line options. diffstat: docs/man/nginx.8 | 15 --- 1 files changed, 8

[nginx] Discard request body when redirecting to a URL via error_page.

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/d0d6cf5031a3 branches: changeset: 7607:d0d6cf5031a3 user: Ruslan Ermilov date: Mon Dec 23 15:45:46 2019 +0300 description: Discard request body when redirecting to a URL via error_page. Reported by Bert JW Regeer and Francisco Oca Gonzalez

[nginx] Rewrite: disallow empty replacements.

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/db8df9cd84c8 branches: changeset: 7606:db8df9cd84c8 user: Ruslan Ermilov date: Mon Dec 16 15:19:01 2019 +0300 description: Rewrite: disallow empty replacements. While empty replacements were caught at run-time, parsing code of the "re

[nginx] Tolerate '\0' in URI when mapping URI to path.

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/02a539522be4 branches: changeset: 7605:02a539522be4 user: Ruslan Ermilov date: Mon Dec 16 15:19:01 2019 +0300 description: Tolerate '\0' in URI when mapping URI to path. If a rewritten URI has the null character, only a part of URI was copied

[nginx] Rewrite: fixed segfault with rewritten URI and "alias".

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/7aa20af4ac00 branches: changeset: 7604:7aa20af4ac00 user: Ruslan Ermilov date: Mon Dec 16 15:19:01 2019 +0300 description: Rewrite: fixed segfault with rewritten URI and "alias". The "alias" directive cannot be used in the

[nginx] Fixed request finalization in ngx_http_index_handler().

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/e55e28e6998f branches: changeset: 7603:e55e28e6998f user: Ruslan Ermilov date: Mon Dec 16 15:19:01 2019 +0300 description: Fixed request finalization in ngx_http_index_handler(). Returning 500 instead of NGX_ERROR is preferable here because

[nginx] Saved some memory allocations.

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/b399246ea45d branches: changeset: 7602:b399246ea45d user: Ruslan Ermilov date: Mon Dec 16 15:19:01 2019 +0300 description: Saved some memory allocations. In configurations when "root" has variables, some modules unnecessarily alloca

[nginx] Dav: fixed Location in successful MKCOL response.

2019-12-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/c1a7d3672653 branches: changeset: 7601:c1a7d3672653 user: Ruslan Ermilov date: Mon Dec 16 15:19:01 2019 +0300 description: Dav: fixed Location in successful MKCOL response. Instead of reducing URI length to not include the terminating '\0

Re: Fwd: 1.17.5 regression

2019-12-19 Thread Ruslan Ermilov
On Wed, Dec 18, 2019 at 06:35:35PM +0100, Gábor Boskovits wrote: > Hello Maxim, > > Maxim Dounin ezt írta (időpont: 2019. dec. 18., > Sze, 18:24): > > > > Hello! > > > > On Mon, Dec 16, 2019 at 03:02:37PM +0100, Gábor Boskovits wrote: > > > > > On berlin.guix.gnu.org we observed a regression

Re: [PATCH] Update nginx(8) manual page

2019-12-05 Thread Ruslan Ermilov
On Sun, Dec 01, 2019 at 04:41:23AM +0300, Sergey A. Osokin wrote: > # HG changeset patch > # User Sergey A. Osokin > # Date 1575163872 -10800 > # Sun Dec 01 04:31:12 2019 +0300 > # Node ID 477a78d1b14e415a80b6bfb3d829eb408f33f390 > # Parent d13eddd9e2529b4bc30dc00aad959bd10ced4c33 > Update

[nginx] The "/." and "/.." at the end of URI should be normalized.

2019-10-08 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/79bcbe7cd3f2 branches: changeset: 7578:79bcbe7cd3f2 user: Ruslan Ermilov date: Tue Oct 08 21:56:14 2019 +0300 description: The "/." and "/.." at the end of URI should be normalized. diffstat: src/http/ng

[nginx] Improved detection of broken percent encoding in URI.

2019-10-08 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/5a3426683251 branches: changeset: 7577:5a3426683251 user: Ruslan Ermilov date: Tue Oct 08 21:56:14 2019 +0300 description: Improved detection of broken percent encoding in URI. diffstat: src/http/ngx_http_parse.c | 4 1 files changed

[nginx] HTTP/2: fixed possible alert about left open socket on shutdown.

2019-09-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/d6cf51af8a3d branches: changeset: 7570:d6cf51af8a3d user: Ruslan Ermilov date: Mon Sep 23 15:45:32 2019 +0300 description: HTTP/2: fixed possible alert about left open socket on shutdown. This could happen when graceful shutdown configured

[nginx] HTTP/2: fixed worker_shutdown_timeout.

2019-09-23 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/ab5cac9d3f00 branches: changeset: 7571:ab5cac9d3f00 user: Ruslan Ermilov date: Mon Sep 23 15:45:36 2019 +0300 description: HTTP/2: fixed worker_shutdown_timeout. diffstat: src/http/v2/ngx_http_v2.c | 5 + 1 files changed, 5 insertions

[nginx] HTTP/2: close connection on zero WINDOW_UPDATE.

2019-09-10 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/fd6dcc6f8a49 branches: changeset: 7565:fd6dcc6f8a49 user: Ruslan Ermilov date: Tue Sep 10 15:33:38 2019 +0300 description: HTTP/2: close connection on zero WINDOW_UPDATE. Don't waste server resources by sending RST_STREAM frames. Instead

[nginx] HTTP/2: close connection on frames with self-dependency.

2019-09-10 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/29b2dc731503 branches: changeset: 7564:29b2dc731503 user: Ruslan Ermilov date: Tue Sep 10 15:33:37 2019 +0300 description: HTTP/2: close connection on frames with self-dependency. Don't waste server resources by sending RST_STREAM frames

[nginx] Added ngx_http_set_complex_value_size_slot().

2019-04-24 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/b82162b8496a branches: changeset: 7503:b82162b8496a user: Ruslan Ermilov date: Wed Apr 24 16:38:51 2019 +0300 description: Added ngx_http_set_complex_value_size_slot(). If a complex value is expected to be of type size_t, and the compiled

[nginx] Variables support in proxy_upload_rate and proxy_download_rate.

2019-04-24 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/16a1adadf437 branches: changeset: 7505:16a1adadf437 user: Ruslan Ermilov date: Wed Apr 24 16:38:56 2019 +0300 description: Variables support in proxy_upload_rate and proxy_download_rate. diffstat: src/stream/ngx_stream_proxy_module.c | 31

[nginx] Variables support in limit_rate and limit_rate_after (ticket #293).

2019-04-24 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/c19ca381b2e6 branches: changeset: 7504:c19ca381b2e6 user: Ruslan Ermilov date: Wed Apr 24 16:38:54 2019 +0300 description: Variables support in limit_rate and limit_rate_after (ticket #293). diffstat: src/http/ngx_http_core_module.c

Re: limit_rate_after support variables

2019-02-26 Thread Ruslan Ermilov
_OK) > > +{ > > +if (limit_rate != (size_t) NGX_ERROR) { > > +r->limit_rate_after = limit_rate; > > + > > +} else if (val.len) { > > > > Please, merge your path to master branch. > > > > Best regards > > M. N

[nginx] Use %s for errors returned from configuration parsing handlers.

2019-01-31 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/d864ee67b5ae branches: changeset: 7451:d864ee67b5ae user: Ruslan Ermilov date: Tue Dec 25 15:26:58 2018 +0300 description: Use %s for errors returned from configuration parsing handlers. diffstat: src/core/ngx_conf_file.c | 2 +- 1 files

Re: [PATCH] Upstream: added $upstream_bytes_sent variable

2018-12-13 Thread Ruslan Ermilov
https://hg.nginx.org/nginx/rev/e573d74299a0 ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

[nginx] Upstream: implemented $upstream_bytes_sent.

2018-12-13 Thread Ruslan Ermilov
details: https://hg.nginx.org/nginx/rev/e573d74299a0 branches: changeset: 7429:e573d74299a0 user: Ruslan Ermilov date: Thu Dec 13 17:23:07 2018 +0300 description: Upstream: implemented $upstream_bytes_sent. diffstat: src/http/ngx_http_upstream.c | 15 +++ src/http

Re: limit_rate_after support variables

2018-12-06 Thread Ruslan Ermilov
ffered proxying combined with limit_rate set. > if (r->limit_rate) { > if (r->limit_rate_after == 0 > && clcf->limit_rate_after > @@ -227,7 +246,7 @@ > _rate_after) > == NGX_OK) &g

Re: [PATCH] Upstream: added $upstream_bytes_sent variable

2018-11-30 Thread Ruslan Ermilov
ere were questions if such a variable is actually needed - > I think we are aware of at most one feature request for this: > > http://mailman.nginx.org/pipermail/nginx/2018-March/055940.html > > I've asked Ruslan to post his version of the patch (or, rather, a > patch series)

Re: limit_rate_after support variables

2018-11-20 Thread Ruslan Ermilov
On Sun, Nov 18, 2018 at 09:53:25PM +, Jaroslav Skřivan wrote: > Hi, > > I found this path > http://mailman.nginx.org/pipermail/nginx-devel/2018-October/011505.html > very useful in our environment. > > I would love to have it in upstream. What can I do in order to make it > happe? > >

Re: limit_rate_after support variables

2018-11-20 Thread Ruslan Ermilov
, also the while patch series became a single patch. I've updated my version of the patch series. You can help with the code review and testing, if you like: # HG changeset patch # User Ruslan Ermilov # Date 1542721399 -10800 # Tue Nov 20 16:43:19 2018 +0300 # Node ID 9926926b9d63c8cc977987

[nginx] Core: free shared memory on cycle initialization failure.

2018-11-15 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/650574a44505 branches: changeset: 7394:650574a44505 user: Ruslan Ermilov date: Thu Nov 15 15:28:54 2018 +0300 description: Core: free shared memory on cycle initialization failure. diffstat: src/core/ngx_cycle.c | 64

[nginx] Fixed off-by-one error in shared zone initialization.

2018-10-02 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/7bf3c323cb6e branches: changeset: 7366:7bf3c323cb6e user: Ruslan Ermilov date: Tue Oct 02 13:32:52 2018 +0300 description: Fixed off-by-one error in shared zone initialization. On systems without atomic ops, not enough space was allocated

[nginx] SSL: fixed unlocked access to sess_id->len.

2018-09-27 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/cd4fa2fab8d8 branches: changeset: 7365:cd4fa2fab8d8 user: Ruslan Ermilov date: Tue Sep 25 14:07:59 2018 +0300 description: SSL: fixed unlocked access to sess_id->len. diffstat: src/event/ngx_event_openssl.c | 7 +-- 1 files changed

[nginx] Version bump.

2018-09-27 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/5fa22beeaf11 branches: changeset: 7364:5fa22beeaf11 user: Ruslan Ermilov date: Thu Sep 27 13:05:39 2018 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines

Re: [nginx] Upstream: enable hash balancing method support parameter "backup".

2018-09-24 Thread Ruslan Ermilov
On Mon, Sep 24, 2018 at 08:44:15AM +, Elza Scarlet wrote: > Dear Development Team, > > Thanks all of you make nginx so nice to use. We have a use case, we use hash > balancing method to increasing service's cache hit rate, but it doesn't > support "backup" parameter, which can be use to make

Re: limit_rate_after support variables

2018-08-29 Thread Ruslan Ermilov
On Tue, Aug 28, 2018 at 09:21:31AM +0200, Miroslav Novy wrote: > Hi, > thank you for your patch. I will look at it. Why did not you merge him to > repository? Because nobody indicated interest, nor has made a necessary code review. ___ nginx-devel

Re: limit_rate_after support variables

2018-08-27 Thread Ruslan Ermilov
) > +!= NGX_OK) > +{ > +return NGX_ERROR; > +} > + > +st = ngx_parse_size(); > +if (st != (size_t) NGX_ERROR) { > +r->limit_rate_after = st; > +} else { > +

[nginx] Fixed invalid access to location defined as an empty string.

2018-07-18 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/45e513c3540d branches: changeset: 7321:45e513c3540d user: Ruslan Ermilov date: Tue Jul 17 15:30:43 2018 +0300 description: Fixed invalid access to location defined as an empty string. diffstat: src/http/modules/ngx_http_fastcgi_module.c

[nginx] Allow resetting connections closed by "return 444" (ticket #905).

2018-07-12 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/e45f09198dab branches: changeset: 7313:e45f09198dab user: Ruslan Ermilov date: Thu Jul 12 12:50:20 2018 +0300 description: Allow resetting connections closed by "return 444" (ticket #905). If reset_timedout_connection is on, TCP c

Re: [PATCH] Core: remove unused FIOASYNC.

2018-07-11 Thread Ruslan Ermilov
ing poll() for this could be one of the options, the existing SIGIO mechanism is another one. > On Thu, Jun 28, 2018 at 4:47 AM Ruslan Ermilov wrote: > > > > On Thu, Jun 28, 2018 at 12:27:40PM +0300, Ruslan Ermilov wrote: > > > On Wed, Jun 27, 2018 at 01:40:26PM -0700, Ian

[nginx] Added FreeBSD support for "listen ... reuseport".

2018-07-02 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/5c2ac36fcf56 branches: changeset: 7304:5c2ac36fcf56 user: Ruslan Ermilov date: Mon Jul 02 13:54:33 2018 +0300 description: Added FreeBSD support for "listen ... reuseport". diffstat: src/core/ngx_connecti

Re: [PATCH] Core: remove unused FIOASYNC.

2018-06-28 Thread Ruslan Ermilov
On Thu, Jun 28, 2018 at 12:27:40PM +0300, Ruslan Ermilov wrote: > On Wed, Jun 27, 2018 at 01:40:26PM -0700, Ian Gudger wrote: > > Sorry, I understand now. > > > > Here is a new patch which removes that too: > > > > # HG changeset patch > > # User

Re: [PATCH] Core: remove unused FIOASYNC.

2018-06-28 Thread Ruslan Ermilov
ss.c b/src/os/unix/ngx_process.c [...] > @@ -433,8 +411,6 @@ ngx_signal_handler(int signo, siginfo_t > > case ngx_signal_value(NGX_RECONFIGURE_SIGNAL): > case ngx_signal_value(NGX_CHANGEBIN_SIGNAL): > -case SIGIO: > -action = ", ignoring"; >

Re: [PATCH] Core: remove unused FIOASYNC.

2018-06-27 Thread Ruslan Ermilov
se { > I ran the tests with this patch and they all passed. Receiving signals > isn't free, so this patch may improve performance. Highly unlikely in this particular case. If you want, you can update your patch. > On Wed, Jun 27, 2018 at 5:57 AM Ruslan Ermilov wrote: > > >

Re: [PATCH] Core: remove unused FIOASYNC.

2018-06-27 Thread Ruslan Ermilov
On Mon, Jun 25, 2018 at 11:16:12AM -0700, Ian Gudger via nginx-devel wrote: > # HG changeset patch > # User Ian Gudger > # Date 1529449008 25200 > # Tue Jun 19 15:56:48 2018 -0700 > # Node ID 9427538acbc50142afbe91a11a1d4f907a00d257 > # Parent 118885f7a5774962f1145693d9c26a4c199ca6ea >

[nginx] Upstream: improved peer selection concurrency for hash and ip_hash.

2018-06-14 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/ed599ea6c1f1 branches: changeset: 7300:ed599ea6c1f1 user: Ruslan Ermilov date: Thu Jun 14 07:03:50 2018 +0300 description: Upstream: improved peer selection concurrency for hash and ip_hash. diffstat: src/http/modules

Re: [nginx] Added r->schema.

2018-06-08 Thread Ruslan Ermilov
On Fri, Jun 08, 2018 at 11:29:05AM +0800, 洪志道 wrote: > Hi. > > diff -r 8e6bb4e6045f src/http/ngx_http_variables.c > --- a/src/http/ngx_http_variables.c Thu Jun 07 20:04:22 2018 +0300 > +++ b/src/http/ngx_http_variables.c Thu Jun 07 12:20:05 2018 -0400 > @@ -1420,25 +1420,11 @@ >

[nginx] Removed extraneous check while processing request line.

2018-06-07 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/21ad2af3262c branches: changeset: 7294:21ad2af3262c user: Ruslan Ermilov date: Thu Jun 07 19:53:43 2018 +0300 description: Removed extraneous check while processing request line. diffstat: src/http/ngx_http_request.c | 2 +- 1 files changed

[nginx] HTTP/2: use scheme from original request for pushes (closes #1549).

2018-06-07 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/8e6bb4e6045f branches: changeset: 7296:8e6bb4e6045f user: Ruslan Ermilov date: Thu Jun 07 20:04:22 2018 +0300 description: HTTP/2: use scheme from original request for pushes (closes #1549). Instead of the connection scheme, use scheme from

[nginx] Added r->schema.

2018-06-07 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/89430899c72a branches: changeset: 7295:89430899c72a user: Ruslan Ermilov date: Thu Jun 07 20:01:41 2018 +0300 description: Added r->schema. For HTTP/1, it keeps scheme from the absolute form of URI. For HTTP/2, the :scheme request pse

[nginx] Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.

2018-06-07 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/f9661f56c717 branches: changeset: 7292:f9661f56c717 user: Ruslan Ermilov date: Thu May 24 12:06:35 2018 +0300 description: Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986. diffstat: src/http/ngx_http_parse.c | 5 + 1

[nginx] HTTP/2: validate client request scheme.

2018-06-07 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/d588987701f4 branches: changeset: 7293:d588987701f4 user: Ruslan Ermilov date: Thu Jun 07 11:47:10 2018 +0300 description: HTTP/2: validate client request scheme. The scheme is validated as per RFC 3986, Section 3.1. diffstat: src/http/v2

[nginx] Core: fixed comment about ngx_current_msec after 81fae70d6cb8.

2018-05-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/76e7e20cda05 branches: changeset: 7280:76e7e20cda05 user: Ruslan Ermilov date: Tue May 29 16:15:19 2018 +0300 description: Core: fixed comment about ngx_current_msec after 81fae70d6cb8. The value is no longer guaranteed to be based

[nginx] Win32: fixed comment in ngx_gettimeofday() calculations.

2018-05-29 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/f95de1361039 branches: changeset: 7279:f95de1361039 user: Ruslan Ermilov date: Tue May 29 11:47:32 2018 +0300 description: Win32: fixed comment in ngx_gettimeofday() calculations. diffstat: src/os/win32/ngx_time.c | 2 +- 1 files changed, 1

[nginx] Resolver: close UDP socket on error or incomplete send.

2018-05-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/a90f7812de35 branches: changeset: 7276:a90f7812de35 user: Ruslan Ermilov <r...@nginx.com> date: Wed May 23 10:41:38 2018 +0300 description: Resolver: close UDP socket on error or incomplete send. diffstat: src/core/ngx_resolver.c

[nginx] Resolver: style.

2018-05-23 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/e15bf978447e branches: changeset: 7275:e15bf978447e user: Ruslan Ermilov <r...@nginx.com> date: Wed May 23 10:41:29 2018 +0300 description: Resolver: style. diffstat: src/core/ngx_resolver.c | 4 ++-- 1 files changed, 2 insertions

Re: Is there a particular reason --with-compat isn't enabled by default?

2018-05-10 Thread Ruslan Ermilov
On Wed, May 09, 2018 at 12:29:06PM -0400, Thomas Ward wrote: > In regards to several off-lists inquiries downstream about people trying > to add additional third party modules, I've gone and started seeking > justification for enabling --with-compat. > > Downstream in Ubuntu, I'm getting pushback

  1   2   3   4   5   >