Searched refs:sock_timeout (Results 1 – 6 of 6) sorted by relevance
394 if (Sock->sock_timeout >= 0.0) { in newPySSLObject()465 nonblocking = (self->Socket->sock_timeout >= 0.0); in PySSL_SSLdo_handshake()1118 if (s->sock_timeout < 0.0) in check_socket_and_wait_for_timeout()1120 else if (s->sock_timeout == 0.0) in check_socket_and_wait_for_timeout()1138 timeout = (int)(s->sock_timeout * 1000 + 0.5); in check_socket_and_wait_for_timeout()1154 tv.tv_sec = (int)s->sock_timeout; in check_socket_and_wait_for_timeout()1155 tv.tv_usec = (int)((s->sock_timeout - tv.tv_sec) * 1e6); in check_socket_and_wait_for_timeout()1187 nonblocking = (self->Socket->sock_timeout >= 0.0); in PySSL_SSLwrite()1285 nonblocking = (self->Socket->sock_timeout >= 0.0); in PySSL_SSLread()1379 nonblocking = (self->Socket->sock_timeout >= 0.0); in PySSL_SSLshutdown()
133 double sock_timeout; /* Operation timeout in seconds; member
470 #define IS_SELECTABLE(s) ((s)->sock_fd < FD_SETSIZE || s->sock_timeout <= 0.0)673 if (s->sock_timeout <= 0.0) in internal_select()691 timeout = (int)(s->sock_timeout * 1000 + 0.5); in internal_select()699 tv.tv_sec = (int)s->sock_timeout; in internal_select()700 tv.tv_usec = (int)((s->sock_timeout - tv.tv_sec) * 1e6); in internal_select()734 s->sock_timeout = defaulttimeout; in init_sockobject()1719 s->sock_timeout = block ? -1.0 : 0.0; in sock_setblocking()1756 s->sock_timeout = timeout; in sock_settimeout()1776 if (s->sock_timeout < 0.0) { in sock_gettimeout()1781 return PyFloat_FromDouble(s->sock_timeout); in sock_gettimeout()[all …]
471 #define IS_SELECTABLE(s) (_PyIsSelectable_fd((s)->sock_fd) || (s)->sock_timeout <= 0.0)685 if (s->sock_timeout <= 0.0) in internal_select_ex()738 return internal_select_ex(s, writing, s->sock_timeout); in internal_select()761 double deadline, interval = s->sock_timeout; \762 int has_timeout = s->sock_timeout > 0.0; \764 deadline = _PyTime_FloatTime() + s->sock_timeout; \792 s->sock_timeout = defaulttimeout; in init_sockobject()1778 s->sock_timeout = block ? -1.0 : 0.0; in sock_setblocking()1815 s->sock_timeout = timeout; in sock_settimeout()1835 if (s->sock_timeout < 0.0) { in sock_gettimeout()[all …]