nxt_controller.c (259:9cf0e151e752) nxt_controller.c (312:c156aea91063)
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>

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

276
277 ls->sockaddr = nxt_sockaddr_create(rt->mem_pool, &sa->u.sockaddr,
278 sa->socklen, sa->length);
279 if (ls->sockaddr == NULL) {
280 return NXT_ERROR;
281 }
282
283 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>

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

276
277 ls->sockaddr = nxt_sockaddr_create(rt->mem_pool, &sa->u.sockaddr,
278 sa->socklen, sa->length);
279 if (ls->sockaddr == NULL) {
280 return NXT_ERROR;
281 }
282
283 ls->sockaddr->type = sa->type;
284 ls->socklen = sa->socklen;
285 ls->address_length = sa->length;
286
287 nxt_sockaddr_text(ls->sockaddr);
288
284 nxt_sockaddr_text(ls->sockaddr);
285
286 nxt_listen_socket_remote_size(ls, sa);
287
289 ls->socket = -1;
290 ls->backlog = NXT_LISTEN_BACKLOG;
291 ls->read_after_accept = 1;
292 ls->flags = NXT_NONBLOCK;
293
294#if 0
295 /* STUB */
296 wq = nxt_mp_zget(cf->mem_pool, sizeof(nxt_work_queue_t));

--- 849 unchanged lines hidden ---
288 ls->socket = -1;
289 ls->backlog = NXT_LISTEN_BACKLOG;
290 ls->read_after_accept = 1;
291 ls->flags = NXT_NONBLOCK;
292
293#if 0
294 /* STUB */
295 wq = nxt_mp_zget(cf->mem_pool, sizeof(nxt_work_queue_t));

--- 849 unchanged lines hidden ---