Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1037

Listeners with http enabled are not being shutdown after they are deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • Routing Engine
    • None

    Description

      When an http enabled listener is deleted through the console, or via qdmanage ($management), it is being removed from the list of listeners (qdmanage query) but the router still listens to the related TCP port.

      In the example below I had a router with an http listener on port 5674 and a non-http listener at 5672.

      Here are the steps to demonstrate it:

      • Start the router and query listeners

       

      $ qdmanage query --type listener | egrep 'name'
      "name": "listener/0.0.0.0:5672", 
       "name": "listener/0.0.0.0:5674"

       

      • Verify TCP ports being listened

       

      $ netstat -anp | egrep tcp.*LISTEN.*qdrouterd
      tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN 2887/qdrouterd 
      tcp 0 0 0.0.0.0:5674 0.0.0.0:* LISTEN 2887/qdrouterd 
      

       

      • Delete HTTP listener on port 5674

       

      $ qdmanage delete --type listener --name 'listener/0.0.0.0:5674' 
      

       

      • Query listeners

       

      $ qdmanage query --type listener | egrep 'name'
       "name": "listener/0.0.0.0:5672"

       

      • Verify TCP ports being listened

       

      $ netstat -anp | egrep tcp.*LISTEN.*qdrouterd
      tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN 2887/qdrouterd 
      tcp 0 0 0.0.0.0:5674 0.0.0.0:* LISTEN 2887/qdrouterd 
      

       

      Note: This is only happening with http enabled listeners. Regular listeners are being shutdown properly.

      Attachments

        Issue Links

          Activity

            People

              gmurthy Ganesh Murthy
              fgiorget Fernando Giorgetti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: