[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to