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

    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

          People

            Unassigned Unassigned
            LukaszKulas Lukasz Kulas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: