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	Tue Sep 11 06:34:18 2007 +0000
+++ b/src/mail/ngx_mail_handler.c	Tue Sep 11 10:22:12 2007 +0000
@@ -2100,6 +2100,10 @@
 
 #endif
 
+#if (NGX_STAT_STUB)
+    ngx_atomic_fetch_add(ngx_stat_active, -1);
+#endif
+
     c->destroyed = 1;
 
     pool = c->pool;