]> git.kaiwu.me - nginx.git/commitdiff
r1473 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:25:28 +0000 (19:25 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:25:28 +0000 (19:25 +0000)
decrement active connection counter in mail proxy

src/mail/ngx_mail_handler.c

index 73bfbd233980900167683833dfe5c3e98fdec1ab..9c83bdbc80df7bae9e9426498a57f602f8a2914e 100644 (file)
@@ -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;