You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2019/06/16 13:29:00 UTC
[jira] [Created] (SSHD-923) Avoid infinite waits on incoming data
Goldstein Lyor created SSHD-923:
-----------------------------------
Summary: 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
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: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org