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:
parent
7cda30ac1a
commit
3dc0f8507d
2
ssh.c
2
ssh.c
@ -6187,7 +6187,7 @@ static void ssh2_set_window(struct ssh_channel *c, unsigned newwin)
|
|||||||
*
|
*
|
||||||
* "Significant" is arbitrarily defined as half the window size.
|
* "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;
|
struct Packet *pktout;
|
||||||
|
|
||||||
pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_WINDOW_ADJUST);
|
pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_WINDOW_ADJUST);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user