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 2013/01/17 14:06:28 UTC

[jira] [Resolved] (SSHD-204) [PATCH] Provide callback-driven I/O mechanism for Command

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

Guillaume Nodet resolved SSHD-204.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.0

URL: http://svn.apache.org/viewvc?rev=1434616&view=rev

                
> [PATCH] Provide callback-driven I/O mechanism for Command
> ---------------------------------------------------------
>
>                 Key: SSHD-204
>                 URL: https://issues.apache.org/jira/browse/SSHD-204
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.8.0
>            Reporter: Kohsuke Kawaguchi
>            Assignee: Guillaume Nodet
>             Fix For: 0.9.0
>
>         Attachments: SSHD-204.patch
>
>
> In the current abstraction, the Command interface receives InputStream to read the data from the client, which means I pretty much have to allocate a thread to drain this. Look at MINA's own InvertedShellWrapper, which does exactly this.
> This is often rather inefficient, especially given that MINA SSHD delivers the data from the client to ChannelSession as callbacks. To fix this, it should allow Command to receive these callbacks. This would allow me to further chain other asynchronous IO (such as socket connection to other servers behind) and implement my Command in a truly asynchronous fashion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira