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

Goldstein Lyor commented on SSHD-340:
-------------------------------------

{quote}
For example Nio2ServiceFactory does perform a group.awaitTermination during 
doCloseImmediately() which is wrong
{quote}
I am not so sure - there is a (cryptic remark) that says 
{code:java}
// if we protect the executor then the await will fail since we didn't really 
shut it down...
{code}
in any case, the {{awaitTermination}} call is executed only if 
{{isShutdownOnExit}}

> Hanging threads left working when server is shut down
> -----------------------------------------------------
>
>                 Key: SSHD-340
>                 URL: https://issues.apache.org/jira/browse/SSHD-340
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: Sampo Savolainen
>            Priority: Major
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> SSHD fails to stop properly due to errant threads. I've attached a thread 
> dump from a point of execution where everything should have been cleaned up. 
> The hanging threads happen only if the server has accepted connections and 
> they do not hang forever, they seem to stop themselves after a minute or so. 
> This might be an executor pool which is not shut down correctly.
> Earlier versions (0.8.0 and 0.9.0) did not exhibit this behavior.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to