diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-04-17 23:55:41 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-04-17 23:55:41 +0400 |
commit | cdf609a925e8c3c84ecd9b00f48e8adc6b162006 (patch) | |
tree | b83a7d4d84b8d08804f55fce7756a66b1dc18960 /src/event | |
parent | cdbe8c066b1d357ca0cf38a35bc47a1c09b2f1d3 (diff) |
nginx-0.3.39-RELEASE importrelease-0.3.39
*) Feature: the "uninitialized_variable_warn" directive; the logging
level of the "uninitialized variable" message was lowered from
"alert" to "warn".
*) Feature: the "override_charset" directive.
*) Change: now if the unknown variable is used in the "echo" and "if
expr='$name'" SSI-commands, then the "unknown variable" message is
not logged.
*) Bugfix: the active connection counter increased on the exceeding of
the connection limit specified by the "worker_connections"
directive; the bug had appeared in 0.2.0.
*) Bugfix: the limit rate might not work on some condition; the bug had
appeared in 0.3.38.
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ngx_event_accept.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event/ngx_event_accept.c b/src/event/ngx_event_accept.c index 287777d28..ebba8727d 100644 --- a/src/event/ngx_event_accept.c +++ b/src/event/ngx_event_accept.c @@ -78,7 +78,6 @@ ngx_event_accept(ngx_event_t *ev) #if (NGX_STAT_STUB) ngx_atomic_fetch_add(ngx_stat_accepted, 1); - ngx_atomic_fetch_add(ngx_stat_active, 1); #endif ngx_accept_disabled = NGX_ACCEPT_THRESHOLD @@ -95,6 +94,10 @@ ngx_event_accept(ngx_event_t *ev) return; } +#if (NGX_STAT_STUB) + ngx_atomic_fetch_add(ngx_stat_active, 1); +#endif + c->pool = ngx_create_pool(ls->pool_size, ev->log); if (c->pool == NULL) { ngx_close_accepted_connection(c); |