Lukasz Kulas created PROTON-2369:
------------------------------------
Summary: Wait function in BlockingConnection does not timeout when
the clock is changed to past
Key: PROTON-2369
URL: https://issues.apache.org/jira/browse/PROTON-2369
Project: Qpid Proton
Issue Type: Bug
Components: python-binding
Affects Versions: proton-c-0.33.0
Reporter: Lukasz Kulas
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)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]