summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-07-14 20:34:33 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-07-14 20:34:33 +0300
commitb5d0920491780737b1c17ced7ac4521db6e57fc9 (patch)
tree4e2457e095340418211eb52acbc69d049fd00724 /src/nxt_router.c
parent3ed35d725ac4e04cfd798f682a19a198e4bb9ac7 (diff)
downloadunit-b5d0920491780737b1c17ced7ac4521db6e57fc9.tar.gz
unit-b5d0920491780737b1c17ced7ac4521db6e57fc9.tar.bz2
Router: listening socket configuration retention count fixed.
Diffstat (limited to '')
-rw-r--r--src/nxt_router.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index b9d4cc58..c4679244 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -1029,6 +1029,7 @@ nxt_router_engine_joints_create(nxt_router_temp_conf_t *tmcf,
{
nxt_joint_job_t *job;
nxt_queue_link_t *qlk;
+ nxt_socket_conf_t *skcf;
nxt_socket_conf_joint_t *joint;
for (qlk = nxt_queue_first(sockets);
@@ -1060,7 +1061,11 @@ nxt_router_engine_joints_create(nxt_router_temp_conf_t *tmcf,
job->work.data = joint;
joint->count = 1;
- joint->socket_conf = nxt_queue_link_data(qlk, nxt_socket_conf_t, link);
+
+ skcf = nxt_queue_link_data(qlk, nxt_socket_conf_t, link);
+ skcf->count++;
+ joint->socket_conf = skcf;
+
joint->engine = recf->engine;
nxt_queue_insert_tail(&joint->engine->joints, &joint->link);