Commit ff444e82 authored by Victor Stinner's avatar Victor Stinner

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

parent 02f32ab4
...@@ -723,6 +723,7 @@ sock_call(PySocketSockObject *s, ...@@ -723,6 +723,7 @@ sock_call(PySocketSockObject *s,
interval = deadline - _PyTime_GetMonotonicClock(); interval = deadline - _PyTime_GetMonotonicClock();
} }
else { else {
deadline_initialized = 1;
deadline = _PyTime_GetMonotonicClock() + s->sock_timeout; deadline = _PyTime_GetMonotonicClock() + s->sock_timeout;
interval = 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