Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4459 - trunk/src/http/modules

Anonymous User
February 10, 2012 05:50AM
Author: vbart
Date: 2012-02-10 10:48:58 +0000 (Fri, 10 Feb 2012)
New Revision: 4459

Modified:
trunk/src/http/modules/ngx_http_limit_conn_module.c
Log:
Limit conn: returned to the old behavior of using the first actual limit on
the way.

It was unintentionally changed in r4272, so that it could only limit the first
location where the processing of the request has reached PREACCESS phase.


Modified: trunk/src/http/modules/ngx_http_limit_conn_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_limit_conn_module.c 2012-02-10 09:56:37 UTC (rev 4458)
+++ trunk/src/http/modules/ngx_http_limit_conn_module.c 2012-02-10 10:48:58 UTC (rev 4459)
@@ -159,8 +159,6 @@
return NGX_DECLINED;
}

- r->main->limit_conn_set = 1;
-
lccf = ngx_http_get_module_loc_conf(r, ngx_http_limit_conn_module);
limits = lccf->limits.elts;

@@ -187,6 +185,8 @@
continue;
}

+ r->main->limit_conn_set = 1;
+
hash = ngx_crc32_short(vv->data, len);

shpool = (ngx_slab_pool_t *) limits[i].shm_zone->shm.addr;

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

[nginx] svn commit: r4459 - trunk/src/http/modules

Anonymous User 1304 February 10, 2012 05:50AM



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

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready