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

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

Candidate locations:

* {{DefaultSftpClient#receive}}
* {{(local) AgentForwardedChannel#request}}
* {{(Unix) AgentClient#request}}

> 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