summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-28 15:16:28 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-28 15:16:28 +0300
commitd8f371dde9dd660c6067a173e70289c33e2a26c0 (patch)
treebba2a8c5912e06aef4cb5271e69a909b0c706d9c
parent61c20aae4b2b2a142bb368219ed3a4b218d714a8 (diff)
downloadunit-d8f371dde9dd660c6067a173e70289c33e2a26c0.tar.gz
unit-d8f371dde9dd660c6067a173e70289c33e2a26c0.tar.bz2
Setting listen socket fields lost in changeset 10688b89aa16.
Diffstat (limited to '')
-rw-r--r--src/nxt_controller.c2
-rw-r--r--src/nxt_router.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 33bb3e93..d2d81a4f 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -157,6 +157,8 @@ nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt)
}
ls->sockaddr->type = sa->type;
+ ls->socklen = sa->socklen;
+ ls->address_length = sa->length;
nxt_sockaddr_text(ls->sockaddr);
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 9712d44b..77d830be 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -240,6 +240,8 @@ nxt_router_socket_conf(nxt_task_t *task, nxt_mp_t *mp, nxt_sockaddr_t *sa)
}
conf->listen.sockaddr = sa;
+ conf->listen.socklen = sa->socklen;
+ conf->listen.address_length = sa->length;
conf->listen.socket = -1;
conf->listen.backlog = NXT_LISTEN_BACKLOG;