changeset 1472:32450a2bbdf4

decrement active connection counter in mail proxy
author Igor Sysoev <igor@sysoev.ru>
date Tue, 11 Sep 2007 10:22:12 +0000
parents fc73de3e8df0
children f88a8b0b3960
files src/mail/ngx_mail_handler.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;