[ 
https://issues.apache.org/jira/browse/SSHD-720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15703230#comment-15703230
 ] 

Claude Warren commented on SSHD-720:
------------------------------------

Just as a quick note:

org.apache.sshd.server.scp.UnknownCommand.java contains

{code}
public void start(Environment env) throws IOException {
        Objects.requireNonNull(err, "No error stream");
        String errorMessage = getMessage();
        try {
            err.write(errorMessage.getBytes(StandardCharsets.UTF_8));
            err.write('\n');
        } finally {
            err.flush();
        }
        if (callback != null) {
            callback.onExit(1, errorMessage);
        }
    }

{code}

That is where I drew my example Command code from.


> SSHD does not always detect remote closure in time.
> ---------------------------------------------------
>
>                 Key: SSHD-720
>                 URL: https://issues.apache.org/jira/browse/SSHD-720
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Claude Warren
>            Priority: Minor
>         Attachments: CommsTest2.java, CommsTest2a.java
>
>
> I am attempting to use a device that will close the connection if there are 
> any invalid commands.  The client side does not detect this condition and I 
> don't see any way to check for it.
> Example code is attached



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to