Lines Matching refs:sock_timeout
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()
1865 return PyFloat_FromDouble(s->sock_timeout); in sock_gettimeout()
2068 if (s->sock_timeout > 0.0) {
2075 tv.tv_sec = (int)s->sock_timeout;
2076 tv.tv_usec = (int)((s->sock_timeout - tv.tv_sec) * 1e6);
2114 if (s->sock_timeout > 0.0) {
3132 … {"timeout", T_DOUBLE, offsetof(PySocketSockObject, sock_timeout), READONLY, "the socket timeout"},
3192 ((PySocketSockObject *)new)->sock_timeout = -1.0;