Home
last modified time | relevance | path

Searched refs:ls (Results 1 – 12 of 12) sorted by relevance

/unit/src/
H A Dnxt_listen_socket.c31 nxt_listen_socket_t *ls) in nxt_listen_socket_create() argument
48 sa = ls->sockaddr; in nxt_listen_socket_create()
89 if (ls->read_after_accept) { in nxt_listen_socket_create()
189 ls->socket = s; in nxt_listen_socket_create()
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()
337 ls->socklen = 3; in nxt_listen_socket_pool_min_size()
[all …]
H A Dnxt_listen_socket.h58 nxt_listen_socket_t *ls);
60 nxt_listen_socket_t *ls, nxt_listen_socket_t *prev);
61 NXT_EXPORT void nxt_listen_socket_remote_size(nxt_listen_socket_t *ls);
62 NXT_EXPORT size_t nxt_listen_socket_pool_min_size(nxt_listen_socket_t *ls);
H A Dnxt_main_process.c52 nxt_listening_socket_t *ls);
1034 nxt_listening_socket_t ls; in nxt_main_port_socket_handler() local
1055 ls.socket = -1; in nxt_main_port_socket_handler()
1057 ls.start = message; in nxt_main_port_socket_handler()
1074 size = ls.end - ls.start; in nxt_main_port_socket_handler()
1116 ls->end = nxt_sprintf(ls->start, ls->end, in nxt_main_listening_socket()
1124 ls->end = nxt_sprintf(ls->start, ls->end, in nxt_main_listening_socket()
1136 ls->end = nxt_sprintf(ls->start, ls->end, in nxt_main_listening_socket()
1183 ls->end = nxt_sprintf(ls->start, ls->end, "bind(\\\"%*s\\\") failed %E", in nxt_main_listening_socket()
1200 ls->end = nxt_sprintf(ls->start, ls->end, in nxt_main_listening_socket()
[all …]
H A Dnxt_runtime.c158 nxt_listen_socket_t *ls; in nxt_runtime_inherited_listen_sockets() local
195 ls->socket = s; in nxt_runtime_inherited_listen_sockets()
222 nxt_listen_socket_t *ls; in nxt_runtime_systemd_listen_sockets() local
264 ls->socket = s; in nxt_runtime_systemd_listen_sockets()
1120 nxt_listen_socket_t *ls; in nxt_runtime_listen_socket_add() local
1123 if (ls == NULL) { in nxt_runtime_listen_socket_add()
1131 if (ls->sockaddr == NULL) { in nxt_runtime_listen_socket_add()
1135 ls->sockaddr->type = sa->type; in nxt_runtime_listen_socket_add()
1139 ls->socket = -1; in nxt_runtime_listen_socket_add()
1142 return ls; in nxt_runtime_listen_socket_add()
[all …]
H A Dnxt_sockaddr.c20 nxt_sockaddr_cache_alloc(nxt_event_engine_t *engine, nxt_listen_socket_t *ls) in nxt_sockaddr_cache_alloc() argument
27 size = offsetof(nxt_sockaddr_t, u) + ls->socklen + ls->address_length; in nxt_sockaddr_cache_alloc()
36 sa->socklen = ls->socklen; in nxt_sockaddr_cache_alloc()
37 sa->length = ls->address_length; in nxt_sockaddr_cache_alloc()
39 sa->type = ls->sockaddr->type; in nxt_sockaddr_cache_alloc()
45 sa->u.sockaddr.sa_family = ls->sockaddr->u.sockaddr.sa_family; in nxt_sockaddr_cache_alloc()
H A Dnxt_controller.c640 nxt_listen_socket_t *ls; in nxt_runtime_controller_socket() local
643 if (ls == NULL) { in nxt_runtime_controller_socket()
647 ls->sockaddr = rt->controller_listen; in nxt_runtime_controller_socket()
649 nxt_listen_socket_remote_size(ls); in nxt_runtime_controller_socket()
651 ls->socket = -1; in nxt_runtime_controller_socket()
652 ls->backlog = NXT_LISTEN_BACKLOG; in nxt_runtime_controller_socket()
653 ls->read_after_accept = 1; in nxt_runtime_controller_socket()
654 ls->flags = NXT_NONBLOCK; in nxt_runtime_controller_socket()
665 ls->work_queue = wq; in nxt_runtime_controller_socket()
667 ls->handler = nxt_controller_conn_init; in nxt_runtime_controller_socket()
[all …]
H A Dnxt_conn_accept.c38 nxt_listen_event(nxt_task_t *task, nxt_listen_socket_t *ls) in nxt_listen_event() argument
46 lev->socket.fd = ls->socket; in nxt_listen_event()
59 lev->listen = ls; in nxt_listen_event()
H A Dnxt_sockaddr.h62 nxt_listen_socket_t *ls);
H A Dnxt_process.c1009 nxt_listen_socket_t *ls; in nxt_process_quit() local
1030 ls = rt->listen_sockets->elts; in nxt_process_quit()
1034 nxt_socket_close(task, ls->socket); in nxt_process_quit()
1035 ls->socket = -1; in nxt_process_quit()
1037 ls++; in nxt_process_quit()
H A Dnxt_router.c2509 nxt_listen_socket_t *ls; in nxt_router_socket_conf() local
2538 skcf->listen = ls; in nxt_router_socket_conf()
2540 ls->sockaddr = nxt_pointer_to(ls, sizeof(nxt_listen_socket_t)); in nxt_router_socket_conf()
2545 ls->socket = -1; in nxt_router_socket_conf()
3509 ls = skcf->listen; in nxt_router_listen_socket_create()
3522 ls->count++; in nxt_router_listen_socket_create()
3679 ls = skcf->listen; in nxt_router_listen_socket_release()
3687 if (--ls->count != 0) { in nxt_router_listen_socket_release()
3688 ls = NULL; in nxt_router_listen_socket_release()
3693 if (ls != NULL) { in nxt_router_listen_socket_release()
[all …]
H A Dnxt_conn.h239 nxt_listen_socket_t *ls);
/unit/src/java/nginx/unit/
H A DContext.java309 String[] ls = f.list(); in doGet() local
313 for (String n : ls) { in doGet()