You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2014/04/21 11:38:14 UTC

[jira] [Created] (SSHD-313) Avoid deadlock on input stream

Guillaume Nodet created SSHD-313:
------------------------------------

             Summary: Avoid deadlock on input stream
                 Key: SSHD-313
                 URL: https://issues.apache.org/jira/browse/SSHD-313
             Project: MINA SSHD
          Issue Type: Improvement
            Reporter: Guillaume Nodet


{code}
Aha, my problem was that I was trying to read from stdin before returning
from my Command.start() implementation. If I call new-connection-fn on a
separate thread, it works.

Would it be reasonable to either 1) throw an exception if anyone tries to
read/write a stream before returning from start() or 2) allow reading from
stdin rather than blocking forever? The current behavior is confusing.

This is the fix:
https://github.com/matvore/hesokuri/commit/5cb13e0a81d7ece6aebdf5c635d150bac1719bf1
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)