New submission from Tasslehoff Kjappfot <tasskj...@gmail.com>:

Queue.get([block[, timeout]]) uses time.time() for calculations of the timeout. 
If someone changes the system time this breaks. If a timeout of 1 second is set 
and someone (on a unix system) uses date to set the time 1 hour back, Queue.get 
will use 1 hour and 1 second to time out.

I'm guessing the fix is just to use another library function to measure time, 
but I don't know if one exists that works on all platforms.

----------
components: Library (Lib)
messages: 155106
nosy: tasslehoff
priority: normal
severity: normal
status: open
title: Using time.time() in Queue.get breaks when system time is changed
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14222>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to