1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-15 18:18:05 -05:00

Tweak window handling so that we send a window adjust if the window is half

used up, rather than over half.  That this increases the throughput of PSCP
by 50% indicates just how broken our window handling is.

[originally from svn r7667]
This commit is contained in:
Ben Harris 2007-08-04 16:04:08 +00:00
parent 7cda30ac1a
commit 3dc0f8507d

2
ssh.c
View File

@ -6187,7 +6187,7 @@ static void ssh2_set_window(struct ssh_channel *c, unsigned newwin)
*
* "Significant" is arbitrarily defined as half the window size.
*/
if (newwin > c->v.v2.locwindow * 2) {
if (newwin >= c->v.v2.locwindow * 2) {
struct Packet *pktout;
pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_WINDOW_ADJUST);