Kaydet (Commit) ff444e82 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout

üst 02f32ab4
......@@ -723,6 +723,7 @@ sock_call(PySocketSockObject *s,
interval = deadline - _PyTime_GetMonotonicClock();
}
else {
deadline_initialized = 1;
deadline = _PyTime_GetMonotonicClock() + s->sock_timeout;
interval = s->sock_timeout;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment