You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2022/03/04 17:49:00 UTC
[jira] [Updated] (PROTON-2369) Wait function in BlockingConnection does not timeout when the clock is changed to past
[ https://issues.apache.org/jira/browse/PROTON-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Stitcher updated PROTON-2369:
------------------------------------
Priority: Major (was: Blocker)
> 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
> Priority: Major
>
> 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.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org