[
https://issues.apache.org/jira/browse/DISPATCH-1037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16511545#comment-16511545
]
ASF GitHub Bot commented on DISPATCH-1037:
------------------------------------------
GitHub user ganeshmurthy opened a pull request:
https://github.com/apache/qpid-dispatch/pull/325
DISPATCH-1037 - Prevented deleting listener with http: yes
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ganeshmurthy/qpid-dispatch DISPATCH-1037
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/qpid-dispatch/pull/325.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #325
----
commit 8276d91bfff40446f1a3e45a275ff0298331c569
Author: Ganesh Murthy <gmurthy@...>
Date: 2018-06-13T18:50:56Z
DISPATCH-1037 - Prevented deleting listener with http: yes
----
> Listeners with http enabled are not being shutdown after they are deleted
> -------------------------------------------------------------------------
>
> Key: DISPATCH-1037
> URL: https://issues.apache.org/jira/browse/DISPATCH-1037
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Routing Engine
> Reporter: Fernando Giorgetti
> Assignee: Ganesh Murthy
> Priority: Major
>
> 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
>
> {code:java}
> $ qdmanage query --type listener | egrep 'name'
> "name": "listener/0.0.0.0:5672",
> "name": "listener/0.0.0.0:5674",
> {code}
>
> * Verify TCP ports being listened
>
> {code:java}
> $ 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
> {code}
>
> * Delete HTTP listener on port 5674
>
> {code:java}
> $ qdmanage delete --type listener --name 'listener/0.0.0.0:5674'
> {code}
>
> * Query listeners
>
> {code:java}
> $ qdmanage query --type listener | egrep 'name'
> "name": "listener/0.0.0.0:5672",
> {code}
>
> * Verify TCP ports being listened
>
> {code:java}
> $ 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
> {code}
>
> Note: This is only happening with http enabled listeners. Regular listeners
> are being shutdown properly.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]