nxt_controller.c (92:67234ab1be76) nxt_controller.c (103:88fc973fd7a2)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

--- 143 unchanged lines hidden (view full) ---

152
153 ls->sockaddr = nxt_sockaddr_create(rt->mem_pool, &sa->u.sockaddr,
154 sa->socklen, sa->length);
155 if (ls->sockaddr == NULL) {
156 return NXT_ERROR;
157 }
158
159 ls->sockaddr->type = sa->type;
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

--- 143 unchanged lines hidden (view full) ---

152
153 ls->sockaddr = nxt_sockaddr_create(rt->mem_pool, &sa->u.sockaddr,
154 sa->socklen, sa->length);
155 if (ls->sockaddr == NULL) {
156 return NXT_ERROR;
157 }
158
159 ls->sockaddr->type = sa->type;
160 ls->socklen = sa->socklen;
161 ls->address_length = sa->length;
160
161 nxt_sockaddr_text(ls->sockaddr);
162
163 ls->socket = -1;
164 ls->backlog = NXT_LISTEN_BACKLOG;
165 ls->read_after_accept = 1;
166 ls->flags = NXT_NONBLOCK;
167

--- 637 unchanged lines hidden ---
162
163 nxt_sockaddr_text(ls->sockaddr);
164
165 ls->socket = -1;
166 ls->backlog = NXT_LISTEN_BACKLOG;
167 ls->read_after_accept = 1;
168 ls->flags = NXT_NONBLOCK;
169

--- 637 unchanged lines hidden ---