summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-07-12 20:21:17 +0300
committerValentin Bartenev <vbart@nginx.com>2017-07-12 20:21:17 +0300
commitc38bcb7d70729434893ae4d5f2f58a78a36d2bd5 (patch)
treee05be6b95fc1fda97255e9c03dbb89e8acf8842b /src/nxt_router.c
parent4f4061061b023cd88a2c54121853a8cb1922f100 (diff)
downloadunit-c38bcb7d70729434893ae4d5f2f58a78a36d2bd5.tar.gz
unit-c38bcb7d70729434893ae4d5f2f58a78a36d2bd5.tar.bz2
Controller: proper reconfiguration requests handling.
Now controller serializes all reconfiguration requests and waits for result from router.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 28765deb..b54d1cf3 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -323,6 +323,8 @@ nxt_router_conf_send(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
return;
}
+ b->mem.free = nxt_cpymem(b->mem.free, start, size);
+
b->parent = tmcf->mem_pool;
b->completion_handler = nxt_router_conf_buf_completion;