Lines Matching refs:socket

263     nxt_log_debug(c->socket.log, "gnutls conn init");  in nxt_gnutls_conn_init()
280 nxt_gnutls_log_error(NXT_LOG_ALERT, c->socket.log, ret, in nxt_gnutls_conn_init()
293 nxt_gnutls_log_error(NXT_LOG_ALERT, c->socket.log, ret, in nxt_gnutls_conn_init()
307 nxt_gnutls_log_error(NXT_LOG_ALERT, c->socket.log, ret, in nxt_gnutls_conn_init()
326 nxt_gnutls_conn_handshake(thr, c, c->socket.data); in nxt_gnutls_conn_init()
332 c->read_state->error_handler, c, c->socket.data); in nxt_gnutls_conn_init()
494 c->socket.fd, b->mem.free, b->mem.end - b->mem.free, n); in nxt_gnutls_conn_io_read()
514 c->socket.fd, b->mem.free, in nxt_gnutls_conn_io_read()
550 nxt_log_debug(c->socket.log, "gnutls_record_send(%d, %p, %uz): %z", in nxt_gnutls_conn_io_send()
551 c->socket.fd, buf, size, n); in nxt_gnutls_conn_io_send()
563 c->socket.fd, buf, size); in nxt_gnutls_conn_io_send()
588 nxt_log_debug(c->socket.log, "gnutls conn shutdown"); in nxt_gnutls_conn_io_shutdown()
590 if (c->socket.timedout || c->socket.error != 0) { in nxt_gnutls_conn_io_shutdown()
593 } else if (c->socket.closed) { in nxt_gnutls_conn_io_shutdown()
602 nxt_log_debug(c->socket.log, "gnutls_bye(%d, %d): %d", in nxt_gnutls_conn_io_shutdown()
603 c->socket.fd, how, err); in nxt_gnutls_conn_io_shutdown()
613 c->socket.error_handler = c->read_state->error_handler; in nxt_gnutls_conn_io_shutdown()
619 c->socket.fd); in nxt_gnutls_conn_io_shutdown()
649 nxt_event_fd_block_write(thr->engine, &c->socket); in nxt_gnutls_conn_test_error()
651 c->socket.read_ready = 0; in nxt_gnutls_conn_test_error()
652 c->socket.read_handler = handler; in nxt_gnutls_conn_test_error()
654 if (nxt_event_fd_is_disabled(c->socket.read)) { in nxt_gnutls_conn_test_error()
655 nxt_event_fd_enable_read(thr->engine, &c->socket); in nxt_gnutls_conn_test_error()
661 nxt_event_fd_block_read(thr->engine, &c->socket); in nxt_gnutls_conn_test_error()
663 c->socket.write_ready = 0; in nxt_gnutls_conn_test_error()
664 c->socket.write_handler = handler; in nxt_gnutls_conn_test_error()
666 if (nxt_event_fd_is_disabled(c->socket.write)) { in nxt_gnutls_conn_test_error()
667 nxt_event_fd_enable_write(thr->engine, &c->socket); in nxt_gnutls_conn_test_error()
674 c->socket.error = 1000; /* Nonexistent errno code. */ in nxt_gnutls_conn_test_error()
690 if (nxt_log_level_enough(c->socket.log, level)) { in nxt_gnutls_conn_log_error()
696 nxt_log_error(level, c->socket.log, "%*s (%d: %s)", in nxt_gnutls_conn_log_error()
718 c->socket.error = 1000; /* Nonexistent errno code. */ in nxt_gnutls_log_error_level()