Lines Matching refs:ls

31     nxt_listen_socket_t *ls)  in nxt_listen_socket_create()  argument
48 sa = ls->sockaddr; in nxt_listen_socket_create()
59 s = nxt_socket_create(task, family, sa->type, 0, ls->flags); in nxt_listen_socket_create()
70 if (family == AF_INET6 && ls->ipv6only) { in nxt_listen_socket_create()
73 ipv6only = (ls->ipv6only == 1); in nxt_listen_socket_create()
89 if (ls->read_after_accept) { in nxt_listen_socket_create()
141 nxt_debug(task, "listen(%d, %d)", s, ls->backlog); in nxt_listen_socket_create()
143 if (listen(s, ls->backlog) != 0) { in nxt_listen_socket_create()
145 s, ls->backlog, nxt_socket_errno); in nxt_listen_socket_create()
189 ls->socket = s; in nxt_listen_socket_create()
219 nxt_listen_socket_update(nxt_task_t *task, nxt_listen_socket_t *ls, in nxt_listen_socket_update() argument
225 ls->socket = prev->socket; in nxt_listen_socket_update()
231 log.ctx = ls->sockaddr; in nxt_listen_socket_update()
234 nxt_debug(task, "listen(%d, %d)", ls->socket, ls->backlog); in nxt_listen_socket_update()
236 if (listen(ls->socket, ls->backlog) != 0) { in nxt_listen_socket_update()
238 ls->socket, ls->backlog, nxt_socket_errno); in nxt_listen_socket_update()
255 nxt_listen_socket_remote_size(nxt_listen_socket_t *ls) in nxt_listen_socket_remote_size() argument
257 switch (ls->sockaddr->u.sockaddr.sa_family) { in nxt_listen_socket_remote_size()
262 ls->socklen = sizeof(struct sockaddr_in6); in nxt_listen_socket_remote_size()
263 ls->address_length = NXT_INET6_ADDR_STR_LEN; in nxt_listen_socket_remote_size()
278 ls->socklen = offsetof(struct sockaddr_un, sun_path) + 1; in nxt_listen_socket_remote_size()
279 ls->address_length = nxt_length("unix:"); in nxt_listen_socket_remote_size()
287 ls->socklen = sizeof(struct sockaddr_in); in nxt_listen_socket_remote_size()
288 ls->address_length = NXT_INET_ADDR_STR_LEN; in nxt_listen_socket_remote_size()
296 nxt_listen_socket_pool_min_size(nxt_listen_socket_t *ls) in nxt_listen_socket_pool_min_size() argument
309 switch (ls->sockaddr->u.sockaddr.sa_family) { in nxt_listen_socket_pool_min_size()
314 ls->socklen = sizeof(struct sockaddr_in6); in nxt_listen_socket_pool_min_size()
315 ls->address_length = NXT_INET6_ADDR_STR_LEN; in nxt_listen_socket_pool_min_size()
320 if (IN6_IS_ADDR_UNSPECIFIED(&ls->sockaddr->u.sockaddr_in6.sin6_addr)) { in nxt_listen_socket_pool_min_size()
337 ls->socklen = 3; in nxt_listen_socket_pool_min_size()
338 size = ls->socklen + nxt_length("unix:"); in nxt_listen_socket_pool_min_size()
339 ls->address_length = nxt_length("unix:"); in nxt_listen_socket_pool_min_size()
346 ls->socklen = sizeof(struct sockaddr_in); in nxt_listen_socket_pool_min_size()
347 ls->address_length = NXT_INET_ADDR_STR_LEN; in nxt_listen_socket_pool_min_size()
352 if (ls->sockaddr->u.sockaddr_in.sin_addr.s_addr == INADDR_ANY) { in nxt_listen_socket_pool_min_size()
361 if (ls->tls) { in nxt_listen_socket_pool_min_size()