[ 
https://issues.apache.org/jira/browse/SSHD-1257?focusedWorklogId=753050&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-753050
 ]

ASF GitHub Bot logged work on SSHD-1257:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Apr/22 18:39
            Start Date: 05/Apr/22 18:39
    Worklog Time Spent: 10m 
      Work Description: tomaswolf closed pull request #214: [SSHD-1257] Make 
ChannelOutputStream#flush no-op if the stream is already closed
URL: https://github.com/apache/mina-sshd/pull/214




Issue Time Tracking
-------------------

    Worklog Id:     (was: 753050)
    Time Spent: 2h 20m  (was: 2h 10m)

> Shell is not getting closed if the command has already closed the 
> OutputStream it is using.
> -------------------------------------------------------------------------------------------
>
>                 Key: SSHD-1257
>                 URL: https://issues.apache.org/jira/browse/SSHD-1257
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: Vincent Latombe
>            Priority: Major
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> When running a org.apache.sshd.server.command.Command, if it happens to close 
> the OutputStream instance it is using, then later when the ssh session 
> closes, it attempts to flush the output stream before closing it.
> This causes theĀ  following warning to be printed on server side
> {code:java}
> WARNING o.a.s.s.channel.ChannelSession#lambda$prepareCommand$0: 
> onExit(ChannelSession[id=0, 
> recipient=0]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:49944]) code=0 
> message='' SshChannelClosedException closing shell: 
> flush(ChannelOutputStream[ChannelSession[id=0, 
> recipient=0]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:49944]] 
> SSH_MSG_CHANNEL_DATA) length=0 - stream is already closed
> {code}
> and EOF is never sent to client.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to