Lines Matching refs:ls

2518     nxt_listen_socket_t  *ls;  in nxt_router_socket_conf()  local
2542 ls = nxt_zalloc(sizeof(nxt_listen_socket_t) + size); in nxt_router_socket_conf()
2543 if (nxt_slow_path(ls == NULL)) { in nxt_router_socket_conf()
2547 skcf->listen = ls; in nxt_router_socket_conf()
2549 ls->sockaddr = nxt_pointer_to(ls, sizeof(nxt_listen_socket_t)); in nxt_router_socket_conf()
2550 nxt_memcpy(ls->sockaddr, sa, size); in nxt_router_socket_conf()
2552 nxt_listen_socket_remote_size(ls); in nxt_router_socket_conf()
2554 ls->socket = -1; in nxt_router_socket_conf()
2555 ls->backlog = NXT_LISTEN_BACKLOG; in nxt_router_socket_conf()
2556 ls->flags = NXT_NONBLOCK; in nxt_router_socket_conf()
2557 ls->read_after_accept = 1; in nxt_router_socket_conf()
3508 nxt_listen_socket_t *ls; in nxt_router_listen_socket_create() local
3518 ls = skcf->listen; in nxt_router_listen_socket_create()
3520 lev = nxt_listen_event(task, ls); in nxt_router_listen_socket_create()
3531 ls->count++; in nxt_router_listen_socket_create()
3685 nxt_listen_socket_t *ls; in nxt_router_listen_socket_release() local
3688 ls = skcf->listen; in nxt_router_listen_socket_release()
3694 task->thread->engine, ls->count); in nxt_router_listen_socket_release()
3696 if (--ls->count != 0) { in nxt_router_listen_socket_release()
3697 ls = NULL; in nxt_router_listen_socket_release()
3702 if (ls != NULL) { in nxt_router_listen_socket_release()
3703 nxt_socket_close(task, ls->socket); in nxt_router_listen_socket_release()
3704 nxt_free(ls); in nxt_router_listen_socket_release()