diff options
author | 2000-09-07 20:40:29 +0000 | |
---|---|---|
committer | 2000-09-07 20:40:29 +0000 | |
commit | c6ddbec25883a303addbe97be9d1957497ebebe5 (patch) | |
tree | 6c60bd70b5c98b98d6430d6eca77cfcade180f70 /usr.bin/ssh/serverloop.c | |
parent | Put back a fix that fgsch@ whacked during the last NetBSD USB sync: (diff) | |
download | wireguard-openbsd-c6ddbec25883a303addbe97be9d1957497ebebe5.tar.xz wireguard-openbsd-c6ddbec25883a303addbe97be9d1957497ebebe5.zip |
cleanup window and packet sizes for ssh2 flow control; ok niels
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r-- | usr.bin/ssh/serverloop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index 71f5a4a30bd..ed2886a9783 100644 --- a/usr.bin/ssh/serverloop.c +++ b/usr.bin/ssh/serverloop.c @@ -744,7 +744,8 @@ input_direct_tcpip(void) if (sock < 0) return -1; return channel_new("direct-tcpip", SSH_CHANNEL_OPEN, - sock, sock, -1, 4*1024, 32*1024, 0, xstrdup("direct-tcpip")); + sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT, + CHAN_TCP_PACKET_DEFAULT, 0, xstrdup("direct-tcpip")); } void @@ -777,7 +778,8 @@ server_input_channel_open(int type, int plen) * CHANNEL_REQUEST messages is registered. */ id = channel_new(ctype, SSH_CHANNEL_LARVAL, - -1, -1, -1, 0, 32*1024, 0, xstrdup("server-session")); + -1, -1, -1, 0, CHAN_SES_PACKET_DEFAULT, + 0, xstrdup("server-session")); if (session_open(id) == 1) { channel_register_callback(id, SSH2_MSG_CHANNEL_REQUEST, session_input_channel_req, (void *)0); |