Home |
Licence |
FAQ |
Docs |
Download |
Keys |
Links
Mirrors |
Updates |
Feedback |
Changes |
Wishlist |
Team
By and large, where there are full-duplex connections in PuTTY, it doesn't currently support the notion of a half-closed connection - that is, end-of-file has been indicated in one direction, but data is still flowing in the other direction. This applies to actual TCP sockets and also SSH channels.
What usually happens is that PuTTY abruptly closes a socket/channel as soon as it sees EOF in either direction.
I suspect this is leading to data loss in some circumstances (so may be a/the cause of `portfwd-corrupt').
What probably needs to be done is to decouple EOFs in either
direction, and to sprinkle use of shutdown()
and EOF
notifications such as SSH1_MSG_CHANNEL_CLOSE
and
SSH2_MSG_CHANNEL_EOF
throughout the code. This is a
noticeable amount of work.
Audit trail for this bug.