Lines Matching refs:socket

760         nxt_debug(c->socket.task, "TLS session ticket encrypt");
765 nxt_openssl_log_error(c->socket.task, NXT_LOG_ALERT,
774 nxt_openssl_log_error(c->socket.task, NXT_LOG_ALERT,
789 nxt_debug(c->socket.task, "TLS session ticket decrypt, key not found");
795 nxt_debug(c->socket.task,
804 nxt_openssl_log_error(c->socket.task, NXT_LOG_ALERT,
819 nxt_openssl_log_error(c->socket.task, NXT_LOG_ALERT,
1050 nxt_debug(c->socket.task, "SSL_get_servername(): NULL");
1056 nxt_debug(c->socket.task, "SSL_get_servername(): \"\" is empty");
1061 nxt_debug(c->socket.task, "ignored the server name \"%s\": "
1066 nxt_debug(c->socket.task, "tls with servername \"%s\"", servername);
1093 nxt_debug(c->socket.task, "new tls context found for \"%V\": \"%V\" "
1099 nxt_openssl_log_error(c->socket.task, NXT_LOG_ALERT,
1168 nxt_log_debug(c->socket.log, "openssl conn init");
1191 ret = SSL_set_fd(s, c->socket.fd);
1195 c->socket.fd);
1209 nxt_openssl_conn_handshake(task, c, c->socket.data);
1216 task, c, c->socket.data);
1251 nxt_debug(task, "openssl conn handshake fd:%d", c->socket.fd);
1253 if (c->socket.error != 0) {
1273 nxt_debug(task, "SSL_do_handshake(%d): %d err:%d", c->socket.fd, ret, err);
1297 c->socket.read_handler = nxt_openssl_conn_handshake;
1298 c->socket.write_handler = nxt_openssl_conn_handshake;
1318 c->socket.fd);
1347 nxt_debug(c->socket.task, "SSL_read(%d, %p, %uz): %d err:%d",
1348 c->socket.fd, b->mem.free, size, ret, err);
1354 n = nxt_openssl_conn_test_error(c->socket.task, c, ret, err,
1357 nxt_openssl_conn_error(c->socket.task, err,
1359 c->socket.fd, b->mem.free, size);
1399 sb->socket, buf, size, ret, err);
1406 c->socket.write_ready = sb->ready;
1410 sb->ready = c->socket.write_ready;
1413 sb->error = c->socket.error;
1415 sb->socket, buf, size);
1436 nxt_debug(task, "openssl conn shutdown fd:%d", c->socket.fd);
1454 if (c->socket.timedout || c->socket.error != 0) {
1457 } else if (c->socket.closed && !(mode & SSL_RECEIVED_SHUTDOWN)) {
1480 c->socket.fd, mode, quiet, ret, err);
1511 c->socket.read_handler = nxt_openssl_conn_io_shutdown;
1512 c->socket.write_handler = nxt_openssl_conn_io_shutdown;
1513 c->socket.error_handler = c->write_state->error_handler;
1531 c->socket.fd);
1559 c->socket.read_ready = 0;
1562 nxt_fd_event_block_write(task->thread->engine, &c->socket);
1564 if (nxt_fd_event_is_disabled(c->socket.read)) {
1565 nxt_fd_event_enable_read(task->thread->engine, &c->socket);
1572 c->socket.write_ready = 0;
1575 nxt_fd_event_block_read(task->thread->engine, &c->socket);
1577 if (nxt_fd_event_is_disabled(c->socket.write)) {
1578 nxt_fd_event_enable_write(task->thread->engine, &c->socket);
1590 c->socket.error = sys_err;
1595 c->socket.closed = 1;
1603 c->socket.error = 1000; /* Nonexistent errno code. */
1621 c->socket.timedout = 1;