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

Goldstein Lyor commented on SSHD-923:
-------------------------------------

[~smoking] Please try https://github.com/lgoldstein/mina-sshd/tree/SSHD-923 and 
see if it releases the NIO2 thread (eventually).
Please review the code in 
{{org.apache.sshd.agent.local.AgentForwardedChannel#request}} and see if you 
can think of any improvements

> Avoid infinite waits on incoming data
> -------------------------------------
>
>                 Key: SSHD-923
>                 URL: https://issues.apache.org/jira/browse/SSHD-923
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>            Reporter: Goldstein Lyor
>            Assignee: Goldstein Lyor
>            Priority: Major
>
> There are a few locations where the code waits for data buffers to be placed 
> on some "queue" and then signaled that this has been done. For this purpose, 
> it uses an "infinite" _wait()_ call on  a {{synchronized}} object. This can 
> cause waiting threads to hang forever even though the session/channel has 
> been closed.
>  We should
> * Replace these with reasonable *configurable* timeouts.
> * Make sure that the wait is signaled if the relevant session/channel is 
> closed so it will detect the closed stream faster



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

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

Reply via email to