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

BlockingConnection client spins at 100% cpu on reconnect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • proton-0.9.1, proton-0.12.0
    • proton-0.12.0
    • proton-c, python-binding
    • None

    Description

      Attached is a simple python client that connects to a server and waits forever for a message to be received, reconnecting on connection failure.

      When the server is restarted (in my case I'm using qdrouterd), the client reconnects then pins the cpu at 100%. It appears as if the BlockingConnection.wait() method in util.py is the source of the busy loop.

      Attachments

        1. cputest.py
          0.8 kB
          Ken Giusti

        Activity

          People

            gsim Gordon Sim
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: