You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/08/22 13:09:00 UTC
[jira] [Comment Edited] (SSHD-640) Streams are not flushed from SSH
Command
[ https://issues.apache.org/jira/browse/SSHD-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182350#comment-17182350 ]
Jean-Baptiste Onofré edited comment on SSHD-640 at 8/22/20, 1:08 PM:
---------------------------------------------------------------------
[~gnodet] since this commit (commit 0e8fbf9558611197da2f3d7c15cfb6d072868e63), I have an issue on Karaf when upgrading to sshd 2.x (see [https://github.com/apache/karaf/pull/1060]) where client doesn't quit as before (I have to type a key).
I tried reverting commit 0e8fbf9558611197da2f3d7c15cfb6d072868e63 and it works just fine. So, somehow, this commit introduce a regression on Karaf sshd.
I'm trying to remove explicit flush on Karaf shell factory to see if it helps.
was (Author: jbonofre):
Since this commit (commit 0e8fbf9558611197da2f3d7c15cfb6d072868e63), I have an issue on Karaf where client doesn't quit as before (I have to type a key).
I tried reverting commit 0e8fbf9558611197da2f3d7c15cfb6d072868e63 and it works just fine. So, somehow, this commit introduce a regression on Karaf sshd.
> Streams are not flushed from SSH Command
> ----------------------------------------
>
> Key: SSHD-640
> URL: https://issues.apache.org/jira/browse/SSHD-640
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Eugene Petrenko
> Assignee: Guillaume Nodet
> Priority: Minor
> Fix For: 2.0.0
>
>
> I create a command with ordinary streams. In command implementation I create thread, write several bytes from the tread to the OutputStream. And exit the command.
> The result is empty from client view. Adding explicit flush solves the issue. I'd expect output streams are flushed implicitly before command end is sent from a server to a client
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org