Router configuration retention count fixed.

This commit is contained in:
Igor Sysoev
2017-07-16 19:56:09 +03:00
parent 6044e6f44f
commit 6fc7b70646

View File

@@ -262,7 +262,6 @@ nxt_router_temp_conf(nxt_task_t *task)
} }
rtcf->mem_pool = mp; rtcf->mem_pool = mp;
rtcf->count = 1;
tmp = nxt_mp_create(1024, 128, 256, 32); tmp = nxt_mp_create(1024, 128, 256, 32);
if (nxt_slow_path(tmp == NULL)) { 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->listen.handler = nxt_router_conn_init;
skcf->router_conf = tmcf->conf; skcf->router_conf = tmcf->conf;
skcf->router_conf->count++;
skcf->application = nxt_router_listener_application(tmcf, skcf->application = nxt_router_listener_application(tmcf,
&lscf.application); &lscf.application);