Lines Matching refs:socket

30     nxt_debug(c->socket.task, "conn close fd:%d, to:%d",  in nxt_conn_close()
31 c->socket.fd, c->socket.timedout); in nxt_conn_close()
39 if (c->socket.timedout) { in nxt_conn_close()
45 ret = setsockopt(c->socket.fd, SOL_SOCKET, SO_LINGER, &linger_off, in nxt_conn_close()
49 nxt_alert(c->socket.task, "setsockopt(%d, SO_LINGER) failed %E", in nxt_conn_close()
50 c->socket.fd, nxt_socket_errno); in nxt_conn_close()
59 c->socket.error_handler = nxt_conn_close_error_ignore; in nxt_conn_close()
61 if (c->socket.error == 0 && !c->socket.closed && !c->socket.shutdown) { in nxt_conn_close()
70 nxt_work_queue_add(wq, handler, c->socket.task, c, engine); in nxt_conn_close()
83 nxt_debug(task, "conn shutdown handler fd:%d", c->socket.fd); in nxt_conn_shutdown_handler()
85 c->socket.shutdown = 1; in nxt_conn_shutdown_handler()
87 nxt_socket_shutdown(task, c->socket.fd, SHUT_RDWR); in nxt_conn_shutdown_handler()
104 nxt_debug(task, "conn close handler fd:%d", c->socket.fd); in nxt_conn_close_handler()
116 events_pending = nxt_fd_event_close(engine, &c->socket); in nxt_conn_close_handler()
119 nxt_socket_close(task, c->socket.fd); in nxt_conn_close_handler()
120 c->socket.fd = -1; in nxt_conn_close_handler()
125 task, c, c->socket.data); in nxt_conn_close_handler()
147 nxt_debug(task, "conn close timer handler fd:%d", c->socket.fd); in nxt_conn_close_timer_handler()
149 if (c->socket.fd != -1) { in nxt_conn_close_timer_handler()
150 nxt_socket_close(task, c->socket.fd); in nxt_conn_close_timer_handler()
151 c->socket.fd = -1; in nxt_conn_close_timer_handler()
156 task, c, c->socket.data); in nxt_conn_close_timer_handler()