[Python-checkins] cpython: Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout

victor.stinner python-checkins at python.org
Thu Apr 2 03:23:15 CEST 2015


https://hg.python.org/cpython/rev/920b700d9509
changeset:   95363:920b700d9509
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Apr 02 03:22:49 2015 +0200
summary:
  Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout

files:
  Modules/socketmodule.c |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -723,6 +723,7 @@
                 interval = deadline - _PyTime_GetMonotonicClock();
             }
             else {
+                deadline_initialized = 1;
                 deadline = _PyTime_GetMonotonicClock() + s->sock_timeout;
                 interval = s->sock_timeout;
             }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list