You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Kohsuke Kawaguchi (Created) (JIRA)" <ji...@apache.org> on 2011/12/23 19:08:30 UTC

[jira] [Created] (SSHD-154) ChannelOutputStream.close() results in a loss of data

ChannelOutputStream.close() results in a loss of data
-----------------------------------------------------

                 Key: SSHD-154
                 URL: https://issues.apache.org/jira/browse/SSHD-154
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.6.0
            Reporter: Kohsuke Kawaguchi
         Attachments: SSHD-154.diff

ChannelOutputStream.close() doesn't send the content of the buffer to the remote side, resulting in loss of data unless flush() is called separately.
This behaviour is inconsistent with other buffering OutputStream implementations, such as java.io.BufferedOutputStream()

Patch attached.

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

        

[jira] [Resolved] (SSHD-154) ChannelOutputStream.close() results in a loss of data

Posted by "Emmanuel Lecharny (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SSHD-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved SSHD-154.
------------------------------------

    Resolution: Fixed

Patch applied. Thanks !
                
> ChannelOutputStream.close() results in a loss of data
> -----------------------------------------------------
>
>                 Key: SSHD-154
>                 URL: https://issues.apache.org/jira/browse/SSHD-154
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Kohsuke Kawaguchi
>              Labels: patch
>         Attachments: SSHD-154.diff
>
>
> ChannelOutputStream.close() doesn't send the content of the buffer to the remote side, resulting in loss of data unless flush() is called separately.
> This behaviour is inconsistent with other buffering OutputStream implementations, such as java.io.BufferedOutputStream()
> Patch attached.

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

        

[jira] [Updated] (SSHD-154) ChannelOutputStream.close() results in a loss of data

Posted by "Kohsuke Kawaguchi (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SSHD-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kohsuke Kawaguchi updated SSHD-154:
-----------------------------------

    Attachment: SSHD-154.diff

Patch against the trunk
                
> ChannelOutputStream.close() results in a loss of data
> -----------------------------------------------------
>
>                 Key: SSHD-154
>                 URL: https://issues.apache.org/jira/browse/SSHD-154
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Kohsuke Kawaguchi
>              Labels: patch
>         Attachments: SSHD-154.diff
>
>
> ChannelOutputStream.close() doesn't send the content of the buffer to the remote side, resulting in loss of data unless flush() is called separately.
> This behaviour is inconsistent with other buffering OutputStream implementations, such as java.io.BufferedOutputStream()
> Patch attached.

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