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/10/21 11:09:34 UTC

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

     [ https://issues.apache.org/jira/browse/SSHD-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SSHD-313:
---------------------------------
    Fix Version/s:     (was: 0.13.0)

> 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.3.4#6332)