Uploaded image for project: 'AMQ Interconnect'
  1. AMQ Interconnect
  2. ENTMQIC-2318

Proton link reference not cleared on router link objects during session close

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.5.1.GA, 1.6.0.GA
    • 1.5.0.GA
    • None
    • None
    • +

      Upstream issue: https://issues.apache.org/jira/browse/DISPATCH-1391

      When the following program is run against the router, it crashes -

      from proton.utils import BlockingConnection
      from time import sleep
      
      ROUTER_ADDRESS = "amqp://127.0.0.1:5672"
      RECEIVER_ADDRESS = "examples-receiver"
      
      c = BlockingConnection(ROUTER_ADDRESS)
      count = 0
      
      while True:
          count += 1
          r = c.create_receiver(RECEIVER_ADDRESS + str(count))
          r.session.close()
          if count == 5:
              break
      

      This is happening because the pn_link references are not cleaned up on router link objects (qd_link_t) during session close

            gmurthy@redhat.com Ganesh Murthy
            rhn-support-shiggs Stephen Higgs
            Fernando Giorgetti Fernando Giorgetti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: