You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2017/01/12 15:17:12 UTC

[jira] [Created] (AMQ-6561) Broker does not close connection for all connection attempt errors

Christopher L. Shannon created AMQ-6561:
-------------------------------------------

             Summary: Broker does not close connection for all connection attempt errors
                 Key: AMQ-6561
                 URL: https://issues.apache.org/jira/browse/AMQ-6561
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.14.3
            Reporter: Christopher L. Shannon
            Assignee: Christopher L. Shannon


When a client connects to the broker the connection gets added inside the processAddConnection method in TransportConnection.  Right now if there is an exception the socket is only shutdown if the type of exception is SecurityException.  However the connection should really be closed if any error occurs when trying to add the connection.  

For example if an InvalidClientIDException occurs then the connection is no longer tracked by the broker but the socket stays open until the client actually closes it on their end. This should be fixed so that the error terminates the socket connection since the connection attempt failed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)