diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-07-13 16:48:28 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-07-13 16:48:28 +0300 |
commit | c5d791d0c4e4949ade77b6b5cafb7199a322ff79 (patch) | |
tree | 2a820fafae8bcd2c7434dde0bf021626fd9c9da6 | |
parent | 0324d51b8d529c4f73469459bf8545f1db08a370 (diff) | |
download | unit-c5d791d0c4e4949ade77b6b5cafb7199a322ff79.tar.gz unit-c5d791d0c4e4949ade77b6b5cafb7199a322ff79.tar.bz2 |
Router: restoring listening sockets of the previous configuration.
-rw-r--r-- | src/nxt_router.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index 48fce3d3..ab9bcf82 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -382,6 +382,7 @@ static void nxt_router_conf_error(nxt_task_t *task, nxt_router_temp_conf_t *tmcf) { nxt_socket_t s; + nxt_router_t *router; nxt_queue_link_t *qlk; nxt_socket_conf_t *skcf; @@ -399,6 +400,11 @@ nxt_router_conf_error(nxt_task_t *task, nxt_router_temp_conf_t *tmcf) nxt_free(skcf->socket); } + router = tmcf->conf->router; + + nxt_queue_add(&router->sockets, &tmcf->keeping); + nxt_queue_add(&router->sockets, &tmcf->deleting); + // TODO: new engines and threads nxt_mp_destroy(tmcf->conf->mem_pool); |