From: Victor Stinner Date: Thu, 2 Apr 2015 01:22:49 +0000 (+0200) Subject: Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout X-Git-Tag: v3.5.0a4~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff444e828e412d52325f3363e8cbcf4806c45d73;p=thirdparty%2FPython%2Fcpython.git Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 90d751f4a4e4..968c2df16511 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; }