diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-07-16 19:56:09 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-07-16 19:56:09 +0300 |
commit | 6fc7b70646cd2cd2a2f6c8eb21bb51a557f905f7 (patch) | |
tree | 7f1a021a28228e2d0620d1a7762140f240c16024 | |
parent | 6044e6f44ffb94c62ff33dcd3b7981f3667ddd05 (diff) | |
download | unit-6fc7b70646cd2cd2a2f6c8eb21bb51a557f905f7.tar.gz unit-6fc7b70646cd2cd2a2f6c8eb21bb51a557f905f7.tar.bz2 |
Router configuration retention count fixed.
-rw-r--r-- | src/nxt_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index d95ee003..993d623c 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -262,7 +262,6 @@ nxt_router_temp_conf(nxt_task_t *task) } rtcf->mem_pool = mp; - rtcf->count = 1; tmp = nxt_mp_create(1024, 128, 256, 32); if (nxt_slow_path(tmp == NULL)) { @@ -693,6 +692,7 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, skcf->listen.handler = nxt_router_conn_init; skcf->router_conf = tmcf->conf; + skcf->router_conf->count++; skcf->application = nxt_router_listener_application(tmcf, &lscf.application); |