From b0fef0eaf63c68792782616237106b72b1968de1 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 11 Sep 2007 10:22:12 +0000 Subject: [PATCH] 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;