connection leak after an attempt to subscribe to nonexisting queue
------------------------------------------------------------------
Key: QPID-3575
URL: https://issues.apache.org/jira/browse/QPID-3575
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: 0.14
Reporter: Pavel Moravec
Attachments: TestQpidLeak.java
Description of problem:
If qpid.declare_queues is set to false and an attempt to subscribe to a
non-existing queue is made, connection.close() method does not close the TCP
connection. This causes a TCP connection leak for case when heartbeats are set.
How reproducible:
100%
Steps to Reproduce:
1. Start a fresh qpid broker with auth=no - make sure no
"some.unreal.destination" queue is there
2. Run attached Java program
3. Do _not_ terminate it when a prompt appears in it
4. Run qpid-stat -c in parallel
Actual results:
qpid-stat shows 10 connections made by the client and despite
connection.close() has been called for each of them.
Expected results:
qpid-stat does not show the 10 connections.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]