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

Reactor never freed if handler/global_handler set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.10
    • proton-0.11.0
    • python-binding
    • None

    Description

      E.g.

      from proton.reactor import Reactor
      
      class Print(object):
          def on_unhandled(self, name, event):
              print("%s %s" % (name, event))
      
      
      while True:
          reactor = Reactor()
          reactor.handler = Print()
          reactor.start()
          reactor.stop()
      

      Will grow in memory and eventually crash. On debugging the reactor is never finalised.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsim Gordon Sim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: