[ 
https://issues.apache.org/jira/browse/QPIDJMS-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498605#comment-14498605
 ] 

ASF subversion and git services commented on QPIDJMS-42:
--------------------------------------------------------

Commit 6bfc26f33f2453f72193e48cccfb5a30921daf1a in qpid-jms's branch 
refs/heads/master from [~tabish121]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-jms.git;h=6bfc26f ]

https://issues.apache.org/jira/browse/QPIDJMS-42

Be sure to shut down Netty resources if the connect attempt fails.

> When amqps connection fails, the program never exits?
> -----------------------------------------------------
>
>                 Key: QPIDJMS-42
>                 URL: https://issues.apache.org/jira/browse/QPIDJMS-42
>             Project: Qpid JMS
>          Issue Type: Bug
>          Components: qpid-jms-client
>            Reporter: Jakub Scholz
>         Attachments: qpidjms42.tar
>
>
> I have a very simple program - it tries to connect, create session, consumer 
> and read messages in a loop. When exception is raised it tries to close 
> connection (if connection exists) and finishes.
> However, when the attempt to open the SSL connection (amqps) is unsuccessful 
> (for example nobody is listening on the specified port), the program seems to 
> never exit.
> I don't think there is a mistake in my program - it almost looks to me like 
> the problem is the nioEventLoop, which seems to have a thread still running 
> at the end when the program keeps hanging.
> My source code as well as the thread dump can be found here: 
> https://gist.github.com/scholzj/c8a3f3b534bbb0d973d9



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to