Leaving threads running if Connection.Dispose fails.
----------------------------------------------------
Key: AMQ-990
URL: https://issues.apache.org/activemq/browse/AMQ-990
Project: ActiveMQ
Issue Type: Bug
Components: NMS (C# client)
Reporter: Pawel Niewiadomski
I faced today following error - in Connection.Dispose call to
DisposeOf(ConnectionId); fails with exception. This causes Connection.Dispose
to be aborted leading to thread responsible for communication not to be joined.
I'm talking about the thread created in TcpTransport.
closing = true;
DisposeOf(ConnectionId); // this causes exception and aborts further execution
on this scope
sessions.Clear();
transport.Oneway(new ShutdownInfo());
transport.Dispose(); // this is responsible for joining the thread and closing
sockets
closed = true;
In summary - thread is still running and we can't get rid of it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira