Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
proton-c-0.33.0
-
None
-
None
-
Patch
Description
The wait function in BlockingConnection will never timeout when the system clock is changed to past.
I attached a patch with a proposed solution.
File: python/proton/_utils.py
Function: def wait(self, condition, timeout=False, msg=None):
We never raise Timeout when system clock is changed to the past:
if deadline < time.time():
txt = "Connection %s timed out" % self.url
if msg:
txt += ": " + msg
raise Timeout(txt)