PuTTY bug half-closed

This is a mirror. The primary PuTTY web site can be found here.

Home | Licence | FAQ | Docs | Download | Keys | Links
Mirrors | Updates | Feedback | Changes | Wishlist | Team

summary: PuTTY doesn't permit half-closed connections
class: bug: This is clearly an actual problem we want fixed.
difficulty: tricky: Needs many tuits.
priority: medium: This should be fixed one day.
present-in: 0.58

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.


If you want to comment on this web site, see the Feedback page.
(last revision of this bug record was at 2005-06-15 22:05:29 +0100)