[
https://issues.apache.org/jira/browse/SSHD-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew C updated SSHD-208:
--------------------------
Attachment: sshd-208.patch
Proposed fix.
> TCPIP forwarders should send CLOSE not EOF
> ------------------------------------------
>
> Key: SSHD-208
> URL: https://issues.apache.org/jira/browse/SSHD-208
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 0.8.0
> Reporter: Andrew C
> Attachments: sshd-208.patch
>
>
> Ref: https://tools.ietf.org/html/rfc4254#section-5.3
> When a tcp end point sees a socket close it sends an EOF message to the other
> end and then waits for that remote end to respond with a close. I argue it
> should instead just send a CLOSE message, the EOF message is intended for
> constructs such as pipes or ptys where it is possible for one half of the
> channel to remain open.
> I think two bits of the RFC are relevant:
> - Note that the channel remains open after this {EOF] message, and more data
> may still be sent in the other direction
> for instance, when one side of a pipe is closed; sockets can't do that
> - A party MAY send SSH_MSG_CHANNEL_CLOSE without having sent or received
> SSH_MSG_CHANNEL_EOF.
> i.e., it is legal
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira