]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Patch from Alan Ning (somewhat polished by me): introduce a flag
authorSimon Tatham <anakin@pobox.com>
Sun, 4 Jul 2010 22:53:53 +0000 (22:53 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 4 Jul 2010 22:53:53 +0000 (22:53 +0000)
commit5ebdf2c8cbb6c76a5df9ad36ea034ca70b22b88c
tree0283b637351cf6e6fbf4c577857dec3e652903e5
parentedfc6a05ecc2b74edd934f53334089123dc00a96
Patch from Alan Ning (somewhat polished by me): introduce a flag
called 'pending_close'. This deals with the situation in which we're
forwarding a port, have received and locally buffered some data from
the local endpoint but not yet been able to pass it down the SSH
connection due to window limitations, and then the local endpoint
closes its socket. In this situation what we've been doing until now
is to immediately send SSH2_MSG_CHANNEL_CLOSE, causing the data
still in our local buffer to be lost; now we instead set the new
flag, which will remind us to send SSH2_MSG_CHANNEL_CLOSE _after_ we
empty our bufchain.

Should fix at least one manifestation of 'portfwd-close', though I
don't know if it's the cause of all the reports we've ever seen.

[originally from svn r8971]
ssh.c