Lines Matching defs:timeout

362 static int PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout);
384 /* If sock is NULL, use a timeout of 0 second */
882 /* If the socket is in non-blocking mode or timeout mode, set the BIO
936 _PyTime_t timeout, deadline = 0;
954 timeout = GET_SOCKET_TIMEOUT(sock);
955 has_timeout = (timeout > 0);
957 deadline = _PyDeadline_Init(timeout);
973 timeout = _PyDeadline_Get(deadline);
976 sockstate = PySSL_select(sock, 0, timeout);
978 sockstate = PySSL_select(sock, 1, timeout);
2254 /* If the socket has a timeout, do a select()/poll() on the socket.
2260 PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout)
2272 /* Nothing to do unless we're in timeout mode (not non-blocking) */
2273 if ((s == NULL) || (timeout == 0))
2275 else if (timeout < 0) {
2292 /* timeout is in seconds, poll() uses milliseconds */
2293 ms = (int)_PyTime_AsMilliseconds(timeout, _PyTime_ROUND_CEILING);
2304 _PyTime_AsTimeval_clamp(timeout, &tv, _PyTime_ROUND_CEILING);
2319 /* Return SOCKET_TIMED_OUT on timeout, SOCKET_OPERATION_OK otherwise
2344 _PyTime_t timeout, deadline = 0;
2364 timeout = GET_SOCKET_TIMEOUT(sock);
2365 has_timeout = (timeout > 0);
2367 deadline = _PyDeadline_Init(timeout);
2370 sockstate = PySSL_select(sock, 1, timeout);
2396 timeout = _PyDeadline_Get(deadline);
2400 sockstate = PySSL_select(sock, 0, timeout);
2402 sockstate = PySSL_select(sock, 1, timeout);
2482 _PyTime_t timeout, deadline = 0;
2533 timeout = GET_SOCKET_TIMEOUT(sock);
2534 has_timeout = (timeout > 0);
2536 deadline = _PyDeadline_Init(timeout);
2549 timeout = _PyDeadline_Get(deadline);
2553 sockstate = PySSL_select(sock, 0, timeout);
2555 sockstate = PySSL_select(sock, 1, timeout);
2614 _PyTime_t timeout, deadline = 0;
2633 timeout = GET_SOCKET_TIMEOUT(sock);
2634 has_timeout = (timeout > 0);
2636 deadline = _PyDeadline_Init(timeout);
2671 timeout = _PyDeadline_Get(deadline);
2674 /* Possibly retry shutdown until timeout or failure */
2676 sockstate = PySSL_select(sock, 0, timeout);
2678 sockstate = PySSL_select(sock, 1, timeout);
5095 "Session timeout (delta in seconds).");
5142 {"timeout", (getter) PySSLSession_get_timeout, NULL,