diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-09-22 01:01:18 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-09-22 01:01:18 +0800 |
commit | 0711101af826cf7f5cb25050587ac6788ac0451c (patch) | |
tree | 5350755ac773b3f28fdca6a6992e907ab504dfca /src/nxt_conn.h | |
parent | 76df62a6236eba2ae1ea7ffe7b9599418b044a01 (diff) | |
download | unit-0711101af826cf7f5cb25050587ac6788ac0451c.tar.gz unit-0711101af826cf7f5cb25050587ac6788ac0451c.tar.bz2 |
Status: fixed error in connection statistics.
When proxy is used, the number of accepted connections is not counted,
This also results in the wrong number of active connections.
Diffstat (limited to 'src/nxt_conn.h')
-rw-r--r-- | src/nxt_conn.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nxt_conn.h b/src/nxt_conn.h index 8a703e9a..5717d3c9 100644 --- a/src/nxt_conn.h +++ b/src/nxt_conn.h @@ -312,8 +312,7 @@ NXT_EXPORT void nxt_event_conn_job_sendfile(nxt_task_t *task, \ nxt_queue_remove(&c->link); \ \ - c->idle = 0; \ - e->idle_conns_cnt--; \ + e->idle_conns_cnt -= c->idle; \ } while (0) |