diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-02 03:22:49 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-02 03:22:49 +0200 |
commit | ff444e828e412d52325f3363e8cbcf4806c45d73 (patch) | |
tree | ee52bfab7d53f5cc1312c3ef9997b0988fe12d4b | |
parent | 02f32ab47e1f69f0bdbc8f8ba930a8e2a2d6846f (diff) | |
download | cpython-git-ff444e828e412d52325f3363e8cbcf4806c45d73.tar.gz |
Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout
-rw-r--r-- | Modules/socketmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 90d751f4a4..968c2df165 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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; } |