changeset 1530:b7431340e7f8 stable-0.5

r1473 merge: decrement active connection counter in mail proxy
author Igor Sysoev <igor@sysoev.ru>
date Sun, 23 Sep 2007 19:25:28 +0000
parents 93176ec9a9fc
children 8b04c0e37099
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;