summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-02-25 20:36:49 +1100
committerDarren Tucker <dtucker@zip.com.au>2007-02-25 20:36:49 +1100
commitd04188e70e17b317076f4c7af3359dc439e43f0b (patch)
tree90edcd971bb45128453b550fe605421d42d8845f
parent89ee69e3c639b55b7577ba8fde66450446f74ea4 (diff)
- djm@cvs.openbsd.org 2007/02/20 10:25:14
[clientloop.c] set maximum packet and window sizes the same for multiplexed clients as normal connections; ok markus@
-rw-r--r--ChangeLog9
-rw-r--r--clientloop.c14
2 files changed, 18 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 434fcafd7..33919d4e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
120070225
2 - (dtucker) OpenBSD CVS Sync
3 - djm@cvs.openbsd.org 2007/02/20 10:25:14
4 [clientloop.c]
5 set maximum packet and window sizes the same for multiplexed clients
6 as normal connections; ok markus@
7
120070219 820070219
2 - (dtucker) OpenBSD CVS Sync 9 - (dtucker) OpenBSD CVS Sync
3 - jmc@cvs.openbsd.org 2007/01/10 13:23:22 10 - jmc@cvs.openbsd.org 2007/01/10 13:23:22
@@ -2742,4 +2749,4 @@
2742 OpenServer 6 and add osr5bigcrypt support so when someone migrates 2749 OpenServer 6 and add osr5bigcrypt support so when someone migrates
2743 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 2750 passwords between UnixWare and OpenServer they will still work. OK dtucker@
2744 2751
2745$Id: ChangeLog,v 1.4619 2007/02/19 11:56:55 dtucker Exp $ 2752$Id: ChangeLog,v 1.4620 2007/02/25 09:36:49 dtucker Exp $
diff --git a/clientloop.c b/clientloop.c
index 0b6fbe88d..c7362caa8 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.177 2007/01/21 01:41:54 stevesk Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.178 2007/02/20 10:25:14 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -707,7 +707,7 @@ client_process_control(fd_set *readset)
707{ 707{
708 Buffer m; 708 Buffer m;
709 Channel *c; 709 Channel *c;
710 int client_fd, new_fd[3], ver, allowed; 710 int client_fd, new_fd[3], ver, allowed, window, packetmax;
711 socklen_t addrlen; 711 socklen_t addrlen;
712 struct sockaddr_storage addr; 712 struct sockaddr_storage addr;
713 struct confirm_ctx *cctx; 713 struct confirm_ctx *cctx;
@@ -900,9 +900,15 @@ client_process_control(fd_set *readset)
900 900
901 set_nonblock(client_fd); 901 set_nonblock(client_fd);
902 902
903 window = CHAN_SES_WINDOW_DEFAULT;
904 packetmax = CHAN_SES_PACKET_DEFAULT;
905 if (cctx->want_tty) {
906 window >>= 1;
907 packetmax >>= 1;
908 }
909
903 c = channel_new("session", SSH_CHANNEL_OPENING, 910 c = channel_new("session", SSH_CHANNEL_OPENING,
904 new_fd[0], new_fd[1], new_fd[2], 911 new_fd[0], new_fd[1], new_fd[2], window, packetmax,
905 CHAN_SES_WINDOW_DEFAULT, CHAN_SES_PACKET_DEFAULT,
906 CHAN_EXTENDED_WRITE, "client-session", /*nonblock*/0); 912 CHAN_EXTENDED_WRITE, "client-session", /*nonblock*/0);
907 913
908 /* XXX */ 914 /* XXX */