You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Pawel Niewiadomski (JIRA)" <ji...@apache.org> on 2006/10/18 15:15:16 UTC

[jira] Created: (AMQ-990) Leaving threads running if Connection.Dispose fails.

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

        

[jira] Assigned: (AMQ-990) Leaving threads running if Connection.Dispose fails.

Posted by "Rob Lugt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-990?page=all ]

Rob Lugt reassigned AMQ-990:
----------------------------

    Assignee: james strachan

Hi James.  This is resolved by the patch supplied for AMQ-999. Please review and resolve this issue if you are satisfied.  

Regards
Rob Lugt

> 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
>         Assigned To: james strachan
>
> 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