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

Guillaume Nodet resolved SSHD-146.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7.0
         Assignee: Guillaume Nodet

Thx Tim and Pierre. I've applied the patch.
                
> SSH Server : EOF from command not propagating to Process (InvertedShell)
> ------------------------------------------------------------------------
>
>                 Key: SSHD-146
>                 URL: https://issues.apache.org/jira/browse/SSHD-146
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.6.0, 0.7.0
>            Reporter: Tim Vernum
>            Assignee: Guillaume Nodet
>             Fix For: 0.7.0
>
>         Attachments: SSH-146.patch, sshd-eof.patch
>
>
> This issue is related to SSHD-35.
> The change implemented in that issue causes the EOF to be propagated to the 
> shell, but because the inverted shell has to pump between the SSH streams and 
> the Process streams, the EOF never makes it to the OS process.
> The cause is that ChannelSession.handleEof() calls shellIn.close(), but 
> shellIn is not directly attached to the process. In fact it's 
> InvertedShellWrapper.pumpStream() that copies from the shellIn to the 
> process, and that doesn't handle EOF.
> I can't see a obvious fix.
> I've put a bit of a hack in that does what I need (and proves that this 
> problem is as described), but it really is a hack...

--
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

        

Reply via email to