Home
last modified time | relevance | path

Searched refs:sock_timeout (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
Dsocketmodule.h133 double sock_timeout; /* Operation timeout in seconds; member
Dsocketmodule.c495 #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 …]
D_ssl.c585 if (sock->sock_timeout >= 0.0) { in newPySSLSocket()
623 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLdo_handshake()
1618 if (s->sock_timeout < 0.0) in check_socket_and_wait_for_timeout()
1620 else if (s->sock_timeout == 0.0) in check_socket_and_wait_for_timeout()
1638 timeout = (int)(s->sock_timeout * 1000 + 0.5); in check_socket_and_wait_for_timeout()
1652 tv.tv_sec = (int)s->sock_timeout; in check_socket_and_wait_for_timeout()
1653 tv.tv_usec = (int)((s->sock_timeout - tv.tv_sec) * 1e6); in check_socket_and_wait_for_timeout()
1696 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLwrite()
1831 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLread()
1908 nonblocking = (sock->sock_timeout >= 0.0); in PySSL_SSLshutdown()