diff options
author | 2007-02-20 10:25:14 +0000 | |
---|---|---|
committer | 2007-02-20 10:25:14 +0000 | |
commit | 558399e88c5badd67581a318e3bd1e2657387726 (patch) | |
tree | 49c715fb9ff74b903e65fe06c3ea4a5b04d8ef8a /usr.bin/ssh/clientloop.c | |
parent | put -n in the right place; from Igor Sobrado (diff) | |
download | wireguard-openbsd-558399e88c5badd67581a318e3bd1e2657387726.tar.xz wireguard-openbsd-558399e88c5badd67581a318e3bd1e2657387726.zip |
set maximum packet and window sizes the same for multiplexed clients
as normal connections; ok markus@
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r-- | usr.bin/ssh/clientloop.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 1a4a9667d61..7e91aaf3a69 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.177 2007/01/21 01:41:54 stevesk Exp $ */ +/* $OpenBSD: clientloop.c,v 1.178 2007/02/20 10:25:14 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -699,7 +699,7 @@ client_process_control(fd_set *readset) { Buffer m; Channel *c; - int client_fd, new_fd[3], ver, allowed; + int client_fd, new_fd[3], ver, allowed, window, packetmax; socklen_t addrlen; struct sockaddr_storage addr; struct confirm_ctx *cctx; @@ -892,9 +892,15 @@ client_process_control(fd_set *readset) set_nonblock(client_fd); + window = CHAN_SES_WINDOW_DEFAULT; + packetmax = CHAN_SES_PACKET_DEFAULT; + if (cctx->want_tty) { + window >>= 1; + packetmax >>= 1; + } + c = channel_new("session", SSH_CHANNEL_OPENING, - new_fd[0], new_fd[1], new_fd[2], - CHAN_SES_WINDOW_DEFAULT, CHAN_SES_PACKET_DEFAULT, + new_fd[0], new_fd[1], new_fd[2], window, packetmax, CHAN_EXTENDED_WRITE, "client-session", /*nonblock*/0); /* XXX */ |