You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Justin SB (JIRA)" <ji...@apache.org> on 2008/06/12 05:34:00 UTC

[jira] Created: (AMQ-1791) Fix: Thread leak in ActiveMQConnection

Fix: Thread leak in ActiveMQConnection
--------------------------------------

                 Key: AMQ-1791
                 URL: https://issues.apache.org/activemq/browse/AMQ-1791
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.1.0
            Reporter: Justin SB
         Attachments: connectionleak.patch

ActiveMQConnection does not shutdown the asyncConnectionThread if an error occurs in the close method.  In particular, if a connection could not be made, stop will immediately throw an exception.  This leaks threads.

The attached patch fixes the problem.

This might be related to AMQ-1214?

I had some trouble creating the patch, because SVN head does not build for me (AMQ-1745).  The patch is simple, so please apply by hand if it doesn't automatically apply.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-1791) Fix: Thread leak in ActiveMQConnection

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies resolved AMQ-1791.
-----------------------------

    Resolution: Fixed

Fix applied in SVN revision 669512

> Fix: Thread leak in ActiveMQConnection
> --------------------------------------
>
>                 Key: AMQ-1791
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1791
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.1.0
>            Reporter: Justin SB
>            Assignee: Rob Davies
>         Attachments: connectionleak.patch
>
>
> ActiveMQConnection does not shutdown the asyncConnectionThread if an error occurs in the close method.  In particular, if a connection could not be made, stop will immediately throw an exception.  This leaks threads.
> The attached patch fixes the problem.
> This might be related to AMQ-1214?
> I had some trouble creating the patch, because SVN head does not build for me (AMQ-1745).  The patch is simple, so please apply by hand if it doesn't automatically apply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AMQ-1791) Fix: Thread leak in ActiveMQConnection

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies reassigned AMQ-1791:
-------------------------------

    Assignee: Rob Davies

> Fix: Thread leak in ActiveMQConnection
> --------------------------------------
>
>                 Key: AMQ-1791
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1791
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.1.0
>            Reporter: Justin SB
>            Assignee: Rob Davies
>         Attachments: connectionleak.patch
>
>
> ActiveMQConnection does not shutdown the asyncConnectionThread if an error occurs in the close method.  In particular, if a connection could not be made, stop will immediately throw an exception.  This leaks threads.
> The attached patch fixes the problem.
> This might be related to AMQ-1214?
> I had some trouble creating the patch, because SVN head does not build for me (AMQ-1745).  The patch is simple, so please apply by hand if it doesn't automatically apply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.