Welcome! Log In Create A New Profile

Advanced

[nginx] Limit req: fixed "nodelay" parsing.

Maxim Dounin
October 02, 2013 07:10AM
details: http://hg.nginx.org/nginx/rev/5483d9e77b32
branches:
changeset: 5411:5483d9e77b32
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Oct 02 15:07:17 2013 +0400
description:
Limit req: fixed "nodelay" parsing.

Previously arguments starting with "nodelay" were considered valid,
e.g. "limit_req ... nodelayFOO;".

diffstat:

src/http/modules/ngx_http_limit_req_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c
--- a/src/http/modules/ngx_http_limit_req_module.c
+++ b/src/http/modules/ngx_http_limit_req_module.c
@@ -912,7 +912,7 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_c
continue;
}

- if (ngx_strncmp(value[i].data, "nodelay", 7) == 0) {
+ if (ngx_strcmp(value[i].data, "nodelay") == 0) {
nodelay = 1;
continue;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Limit req: fixed "nodelay" parsing.

Maxim Dounin 802 October 02, 2013 07:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready