Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: py3.5 Changeset: r90906:52c431bcbf2f Date: 2017-04-01 21:13 +0200 http://bitbucket.org/pypy/pypy/changeset/52c431bcbf2f/
Log: Restore the check for very large sleep delays This code is already inside a retry loop. diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py --- a/pypy/module/time/interp_time.py +++ b/pypy/module/time/interp_time.py @@ -468,6 +468,9 @@ if millisecs == 0.0 or not interruptible: rtime.sleep(secs) break + MAX = sys.maxint / 1000.0 # > 24 days + if millisecs > MAX: + millisecs = MAX interrupt_event = space.fromcache(State).get_interrupt_event() rwin32.ResetEvent(interrupt_event) rc = rwin32.WaitForSingleObject(interrupt_event, millisecs) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit