diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-09-14 18:16:22 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-09-14 18:16:22 +0300 |
commit | 4d5e39e8c1fdad50937fd440ca7a8df43a97e078 (patch) | |
tree | c35b4e2f26d65e38728d33deef920771767b6b5d /src/nxt_controller.c | |
parent | f3280c5dc94e5415970fbbe8d1f03721b85f5553 (diff) | |
download | unit-4d5e39e8c1fdad50937fd440ca7a8df43a97e078.tar.gz unit-4d5e39e8c1fdad50937fd440ca7a8df43a97e078.tar.bz2 |
Fixed textual socket name lengths and Unix domain sockaddr length.
Diffstat (limited to 'src/nxt_controller.c')
-rw-r--r-- | src/nxt_controller.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c index 7305b3d5..e41452a3 100644 --- a/src/nxt_controller.c +++ b/src/nxt_controller.c @@ -281,11 +281,10 @@ 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); + nxt_listen_socket_remote_size(ls, sa); + ls->socket = -1; ls->backlog = NXT_LISTEN_BACKLOG; ls->read_after_accept = 1; |