You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Pierre (JIRA)" <ji...@apache.org> on 2012/05/05 06:05:59 UTC

[jira] [Updated] (SSHD-164) Allow the buffer size for the IO pumps to be configurable in InvertedShellWrapper

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

Pierre updated SSHD-164:
------------------------

    Attachment: SSHD-164.patch

Patch.
                
> Allow the buffer size for the IO pumps to be configurable in InvertedShellWrapper
> ---------------------------------------------------------------------------------
>
>                 Key: SSHD-164
>                 URL: https://issues.apache.org/jira/browse/SSHD-164
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.6.0
>            Reporter: Pierre
>            Priority: Minor
>         Attachments: SSHD-164.patch
>
>
> InvertedShellWrapper uses by default a buffer of 512 bytes to copy the input/output/error streams from the shell to the socket. For some applications, this is way too low, as for example, copying 1MB from the process output to the socket is going to require 2048 loop iterations in the IO pump thread, and introduce a 2s of latency because of the 1ms sleep at the end of each loop iteration.
> Instead the buffer size should be configurable by the command factory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira