Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-11 14:22:12 +0400
committerIgor Sysoev <igor@sysoev.ru>2007-09-11 14:22:12 +0400
commitb0fef0eaf63c68792782616237106b72b1968de1 (patch)
tree03e80a3629e4d81801fa74b15c8cccd712ab9176
parenta72822df366b3b1505bf53a66b809380b121ad63 (diff)
decrement active connection counter in mail proxy
-rw-r--r--src/mail/ngx_mail_handler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c
index 73bfbd233..9c83bdbc8 100644
--- a/src/mail/ngx_mail_handler.c
+++ b/src/mail/ngx_mail_handler.c
@@ -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;