Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2369

Wait function in BlockingConnection does not timeout when the clock is changed to past

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.33.0
    • None
    • python-binding
    • 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)

       

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            LukaszKulas Lukasz Kulas

            Dates

              Created:
              Updated:

              Slack

                Issue deployment