[New-bugs-announce] [issue19339] telnetlib: time.monotonic() should be used instead of time.time() for timeout

STINNER Victor report at bugs.python.org
Mon Oct 21 22:01:15 CEST 2013


New submission from STINNER Victor:

While reading the patch attached to #19170, I saw that telnetlib uses time.time() to compute a timeout. This is wrong: the system clock may jump forward or backward (ex: summer/winter time, NTP adjust, manual clock change by the administrator, etc.).

time.monotonic() should be used instead. I will work on a patch when #19170 will be fixed (just to avoid conflicts).

----------
messages: 200834
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: telnetlib: time.monotonic() should be used instead of time.time() for timeout
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19339>
_______________________________________


More information about the New-bugs-announce mailing list