mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout
This commit is contained in:
parent
02f32ab47e
commit
ff444e828e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue