From 272ee21e6badb1f3468bccf0fdafdcb514fb966d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 23 Sep 2007 19:25:28 +0000 Subject: [PATCH] r1473 merge: decrement active connection counter in mail proxy --- src/mail/ngx_mail_handler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c index 73bfbd233..9c83bdbc8 100644 --- a/src/mail/ngx_mail_handler.c +++ b/src/mail/ngx_mail_handler.c @@ -2100,6 +2100,10 @@ ngx_mail_close_connection(ngx_connection_t *c) #endif +#if (NGX_STAT_STUB) + ngx_atomic_fetch_add(ngx_stat_active, -1); +#endif + c->destroyed = 1; pool = c->pool;