summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2022-08-29 14:27:09 +0800
committerValentin Bartenev <vbart@nginx.com>2022-08-29 14:27:09 +0800
commitce26dd729e6842c9ec8cc83bf091167e4c50a1ec (patch)
treed215198f765faeefd46253bd118e8d058d31fd1e /src/nxt_event_engine.h
parentf2bab1b1be658e3456aa1cec84a1879d4b01577e (diff)
downloadunit-ce26dd729e6842c9ec8cc83bf091167e4c50a1ec.tar.gz
unit-ce26dd729e6842c9ec8cc83bf091167e4c50a1ec.tar.bz2
Implemented basic statistics API.
Diffstat (limited to 'src/nxt_event_engine.h')
-rw-r--r--src/nxt_event_engine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h
index 91cfc0aa..4153742d 100644
--- a/src/nxt_event_engine.h
+++ b/src/nxt_event_engine.h
@@ -483,6 +483,10 @@ struct nxt_event_engine_s {
nxt_queue_t idle_connections;
nxt_array_t *mem_cache;
+ nxt_atomic_uint_t accepted_conns_cnt;
+ nxt_atomic_uint_t idle_conns_cnt;
+ nxt_atomic_uint_t closed_conns_cnt;
+
nxt_queue_link_t link;
// STUB: router link
nxt_queue_link_t link0;