mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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();
|
||||
}
|
||||
else {
|
||||
deadline_initialized = 1;
|
||||
deadline = _PyTime_GetMonotonicClock() + s->sock_timeout;
|
||||
interval = s->sock_timeout;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue