Lines Matching refs:ls

2427     nxt_listen_socket_t  *ls;  in nxt_router_socket_conf()  local
2451 ls = nxt_zalloc(sizeof(nxt_listen_socket_t) + size); in nxt_router_socket_conf()
2452 if (nxt_slow_path(ls == NULL)) { in nxt_router_socket_conf()
2456 skcf->listen = ls; in nxt_router_socket_conf()
2458 ls->sockaddr = nxt_pointer_to(ls, sizeof(nxt_listen_socket_t)); in nxt_router_socket_conf()
2459 nxt_memcpy(ls->sockaddr, sa, size); in nxt_router_socket_conf()
2461 nxt_listen_socket_remote_size(ls); in nxt_router_socket_conf()
2463 ls->socket = -1; in nxt_router_socket_conf()
2464 ls->backlog = NXT_LISTEN_BACKLOG; in nxt_router_socket_conf()
2465 ls->flags = NXT_NONBLOCK; in nxt_router_socket_conf()
2466 ls->read_after_accept = 1; in nxt_router_socket_conf()
3417 nxt_listen_socket_t *ls; in nxt_router_listen_socket_create() local
3427 ls = skcf->listen; in nxt_router_listen_socket_create()
3429 lev = nxt_listen_event(task, ls); in nxt_router_listen_socket_create()
3440 ls->count++; in nxt_router_listen_socket_create()
3594 nxt_listen_socket_t *ls; in nxt_router_listen_socket_release() local
3597 ls = skcf->listen; in nxt_router_listen_socket_release()
3603 task->thread->engine, ls->count); in nxt_router_listen_socket_release()
3605 if (--ls->count != 0) { in nxt_router_listen_socket_release()
3606 ls = NULL; in nxt_router_listen_socket_release()
3611 if (ls != NULL) { in nxt_router_listen_socket_release()
3612 nxt_socket_close(task, ls->socket); in nxt_router_listen_socket_release()
3613 nxt_free(ls); in nxt_router_listen_socket_release()