• Home
  • Raw
  • Download

Lines Matching refs:sockstate

990     int sockstate, nonblocking;  in _ssl__SSLSocket_do_handshake_impl()  local
1030 sockstate = PySSL_select(sock, 0, timeout); in _ssl__SSLSocket_do_handshake_impl()
1032 sockstate = PySSL_select(sock, 1, timeout); in _ssl__SSLSocket_do_handshake_impl()
1034 sockstate = SOCKET_OPERATION_OK; in _ssl__SSLSocket_do_handshake_impl()
1037 if (sockstate == SOCKET_HAS_TIMED_OUT) { in _ssl__SSLSocket_do_handshake_impl()
1041 } else if (sockstate == SOCKET_HAS_BEEN_CLOSED) { in _ssl__SSLSocket_do_handshake_impl()
1045 } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) { in _ssl__SSLSocket_do_handshake_impl()
1049 } else if (sockstate == SOCKET_IS_NONBLOCKING) { in _ssl__SSLSocket_do_handshake_impl()
2253 int sockstate; in _ssl__SSLSocket_write_impl() local
2287 sockstate = PySSL_select(sock, 1, timeout); in _ssl__SSLSocket_write_impl()
2288 if (sockstate == SOCKET_HAS_TIMED_OUT) { in _ssl__SSLSocket_write_impl()
2292 } else if (sockstate == SOCKET_HAS_BEEN_CLOSED) { in _ssl__SSLSocket_write_impl()
2296 } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) { in _ssl__SSLSocket_write_impl()
2316 sockstate = PySSL_select(sock, 0, timeout); in _ssl__SSLSocket_write_impl()
2318 sockstate = PySSL_select(sock, 1, timeout); in _ssl__SSLSocket_write_impl()
2320 sockstate = SOCKET_OPERATION_OK; in _ssl__SSLSocket_write_impl()
2323 if (sockstate == SOCKET_HAS_TIMED_OUT) { in _ssl__SSLSocket_write_impl()
2327 } else if (sockstate == SOCKET_HAS_BEEN_CLOSED) { in _ssl__SSLSocket_write_impl()
2331 } else if (sockstate == SOCKET_IS_NONBLOCKING) { in _ssl__SSLSocket_write_impl()
2392 int sockstate; in _ssl__SSLSocket_read_impl() local
2465 sockstate = PySSL_select(sock, 0, timeout); in _ssl__SSLSocket_read_impl()
2467 sockstate = PySSL_select(sock, 1, timeout); in _ssl__SSLSocket_read_impl()
2475 sockstate = SOCKET_OPERATION_OK; in _ssl__SSLSocket_read_impl()
2477 if (sockstate == SOCKET_HAS_TIMED_OUT) { in _ssl__SSLSocket_read_impl()
2481 } else if (sockstate == SOCKET_IS_NONBLOCKING) { in _ssl__SSLSocket_read_impl()
2520 int sockstate, nonblocking, ret; in _ssl__SSLSocket_shutdown_impl() local
2582 sockstate = PySSL_select(sock, 0, timeout); in _ssl__SSLSocket_shutdown_impl()
2584 sockstate = PySSL_select(sock, 1, timeout); in _ssl__SSLSocket_shutdown_impl()
2588 if (sockstate == SOCKET_HAS_TIMED_OUT) { in _ssl__SSLSocket_shutdown_impl()
2597 else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) { in _ssl__SSLSocket_shutdown_impl()
2602 else if (sockstate != SOCKET_OPERATION_OK) in _ssl__SSLSocket_shutdown_impl()