Searched refs:sock_timeout (Results 1 – 6 of 6) sorted by relevance
133 double sock_timeout; /* Operation timeout in seconds; member
495 #define IS_SELECTABLE(s) (_PyIsSelectable_fd((s)->sock_fd) || (s)->sock_timeout <= 0.0)709 if (s->sock_timeout <= 0.0) in internal_select_ex()762 return internal_select_ex(s, writing, s->sock_timeout); in internal_select()785 double deadline = 0, interval = s->sock_timeout; \786 int has_timeout = s->sock_timeout > 0.0; \788 deadline = _PyTime_FloatTime() + s->sock_timeout; \816 s->sock_timeout = defaulttimeout; in init_sockobject()1803 s->sock_timeout = block ? -1.0 : 0.0; in sock_setblocking()1840 s->sock_timeout = timeout; in sock_settimeout()1860 if (s->sock_timeout < 0.0) { in sock_gettimeout()[all …]
652 if (sock->sock_timeout >= 0.0) { in newPySSLSocket()690 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLdo_handshake()1697 if (s->sock_timeout < 0.0) in check_socket_and_wait_for_timeout()1699 else if (s->sock_timeout == 0.0) in check_socket_and_wait_for_timeout()1717 timeout = (int)(s->sock_timeout * 1000 + 0.5); in check_socket_and_wait_for_timeout()1731 tv.tv_sec = (int)s->sock_timeout; in check_socket_and_wait_for_timeout()1732 tv.tv_usec = (int)((s->sock_timeout - tv.tv_sec) * 1e6); in check_socket_and_wait_for_timeout()1775 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLwrite()1910 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLread()1987 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLshutdown()
236 _PyTime_t sock_timeout; /* Operation timeout in seconds; member
583 #define IS_SELECTABLE(s) (_PyIsSelectable_fd((s)->sock_fd) || (s)->sock_timeout <= 0)960 if (s->sock_timeout > 0 in sock_call_ex()986 return sock_call_ex(s, writing, func, data, 0, NULL, s->sock_timeout); in sock_call()1022 s->sock_timeout = 0; in init_sockobject()1026 s->sock_timeout = defaulttimeout; in init_sockobject()2745 s->sock_timeout = _PyTime_FromSeconds(block ? -1 : 0); in sock_setblocking()2766 if (s->sock_timeout) { in sock_getblocking()2835 s->sock_timeout = timeout; in sock_settimeout()2878 if (s->sock_timeout < 0) { in sock_gettimeout()2882 double seconds = _PyTime_AsSecondsDouble(s->sock_timeout); in sock_gettimeout()[all …]
534 ((sock != NULL) ? (sock)->sock_timeout : 0)995 if (sock && sock->sock_timeout >= 0) { in newPySSLSocket()1056 nonblocking = (sock->sock_timeout >= 0); in _ssl__SSLSocket_do_handshake_impl()2308 if (s->sock_timeout > 0) in PySSL_select()2395 nonblocking = (sock->sock_timeout >= 0); in _ssl__SSLSocket_write_impl()2560 nonblocking = (sock->sock_timeout >= 0); in _ssl__SSLSocket_read_impl()2658 nonblocking = (sock->sock_timeout >= 0); in _ssl__SSLSocket_shutdown_impl()