# HG changeset patch # User Igor Sysoev # Date 1190575528 0 # Node ID b7431340e7f8dcb126f6d25229351a2a90f1012a # Parent 93176ec9a9fc74578a6fa54d3eb646ed35fb789f r1473 merge: decrement active connection counter in mail proxy diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c --- a/src/mail/ngx_mail_handler.c +++ b/src/mail/ngx_mail_handler.c @@ -2100,6 +2100,10 @@ ngx_mail_close_connection(ngx_connection #endif +#if (NGX_STAT_STUB) + ngx_atomic_fetch_add(ngx_stat_active, -1); +#endif + c->destroyed = 1; pool = c->pool;