Lines Matching refs:sock_timeout
563 #define IS_SELECTABLE(s) (_PyIsSelectable_fd((s)->sock_fd) || (s)->sock_timeout <= 0)
763 /* s->sock_timeout is in seconds, timeout in ms */
946 if (s->sock_timeout > 0
972 return sock_call_ex(s, writing, func, data, 0, NULL, s->sock_timeout);
1008 s->sock_timeout = 0;
1012 s->sock_timeout = defaulttimeout;
2824 s->sock_timeout = _PyTime_FromSeconds(block ? -1 : 0);
2845 if (s->sock_timeout) {
2914 s->sock_timeout = timeout;
2957 if (s->sock_timeout < 0) {
2961 double seconds = _PyTime_AsSecondsDouble(s->sock_timeout);
3277 wait_connect = (s->sock_timeout != 0 && IS_SELECTABLE(s));
3280 wait_connect = (s->sock_timeout > 0 && err == SOCK_INPROGRESS_ERR
3298 1, NULL, s->sock_timeout) < 0)
3304 1, &err, s->sock_timeout) < 0)
4231 int has_timeout = (s->sock_timeout > 0);
4232 _PyTime_t timeout = s->sock_timeout;
5147 ((PySocketSockObject *)new)->sock_timeout = _PyTime_FromSeconds(-1);