summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--channels.h16
-rw-r--r--session.c5
-rw-r--r--ssh.c8
4 files changed, 20 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 593fe5030..4ca8825a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@
9 [channels.c] 9 [channels.c]
10 increase the SSH v2 window size to 4 packets. comsumes a little 10 increase the SSH v2 window size to 4 packets. comsumes a little
11 bit more memory for slow receivers but increases througput. 11 bit more memory for slow receivers but increases througput.
12 - markus@cvs.openbsd.org 2002/02/14 23:28:00
13 [channels.h session.c ssh.c]
14 increase the SSH v2 window size to 4 packets. comsumes a little
15 bit more memory for slow receivers but increases througput.
12 16
1320020218 1720020218
14 - (tim) newer config.guess from ftp://ftp.gnu.org/gnu/config/config.guess 18 - (tim) newer config.guess from ftp://ftp.gnu.org/gnu/config/config.guess
@@ -7606,4 +7610,4 @@
7606 - Wrote replacements for strlcpy and mkdtemp 7610 - Wrote replacements for strlcpy and mkdtemp
7607 - Released 1.0pre1 7611 - Released 1.0pre1
7608 7612
7609$Id: ChangeLog,v 1.1856 2002/02/19 04:20:08 djm Exp $ 7613$Id: ChangeLog,v 1.1857 2002/02/19 04:20:57 djm Exp $
diff --git a/channels.h b/channels.h
index 7cb0c367c..b637ab32c 100644
--- a/channels.h
+++ b/channels.h
@@ -32,7 +32,7 @@
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 */ 34 */
35/* RCSID("$OpenBSD: channels.h,v 1.63 2002/02/05 14:32:55 markus Exp $"); */ 35/* RCSID("$OpenBSD: channels.h,v 1.64 2002/02/14 23:28:00 markus Exp $"); */
36 36
37#ifndef CHANNEL_H 37#ifndef CHANNEL_H
38#define CHANNEL_H 38#define CHANNEL_H
@@ -113,12 +113,12 @@ struct Channel {
113#define CHAN_EXTENDED_WRITE 2 113#define CHAN_EXTENDED_WRITE 2
114 114
115/* default window/packet sizes for tcp/x11-fwd-channel */ 115/* default window/packet sizes for tcp/x11-fwd-channel */
116#define CHAN_SES_WINDOW_DEFAULT (32*1024) 116#define CHAN_SES_PACKET_DEFAULT (32*1024)
117#define CHAN_SES_PACKET_DEFAULT (CHAN_SES_WINDOW_DEFAULT/2) 117#define CHAN_SES_WINDOW_DEFAULT (4*CHAN_SES_PACKET_DEFAULT)
118#define CHAN_TCP_WINDOW_DEFAULT (32*1024) 118#define CHAN_TCP_PACKET_DEFAULT (32*1024)
119#define CHAN_TCP_PACKET_DEFAULT (CHAN_TCP_WINDOW_DEFAULT/2) 119#define CHAN_TCP_WINDOW_DEFAULT (4*CHAN_TCP_PACKET_DEFAULT)
120#define CHAN_X11_WINDOW_DEFAULT (4*1024) 120#define CHAN_X11_PACKET_DEFAULT (16*1024)
121#define CHAN_X11_PACKET_DEFAULT (CHAN_X11_WINDOW_DEFAULT/2) 121#define CHAN_X11_WINDOW_DEFAULT (4*CHAN_X11_PACKET_DEFAULT)
122 122
123/* possible input states */ 123/* possible input states */
124#define CHAN_INPUT_OPEN 0 124#define CHAN_INPUT_OPEN 0
@@ -139,7 +139,7 @@ struct Channel {
139 139
140Channel *channel_lookup(int); 140Channel *channel_lookup(int);
141Channel *channel_new(char *, int, int, int, int, int, int, int, char *, int); 141Channel *channel_new(char *, int, int, int, int, int, int, int, char *, int);
142void channel_set_fds(int, int, int, int, int, int); 142void channel_set_fds(int, int, int, int, int, int, u_int);
143void channel_free(Channel *); 143void channel_free(Channel *);
144void channel_free_all(void); 144void channel_free_all(void);
145void channel_stop_listening(void); 145void channel_stop_listening(void);
diff --git a/session.c b/session.c
index 441ff8cdb..f9f5da80e 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.125 2002/02/09 17:37:34 deraadt Exp $"); 36RCSID("$OpenBSD: session.c,v 1.126 2002/02/14 23:28:00 markus Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -1781,7 +1781,8 @@ session_set_fds(Session *s, int fdin, int fdout, int fderr)
1781 channel_set_fds(s->chanid, 1781 channel_set_fds(s->chanid,
1782 fdout, fdin, fderr, 1782 fdout, fdin, fderr,
1783 fderr == -1 ? CHAN_EXTENDED_IGNORE : CHAN_EXTENDED_READ, 1783 fderr == -1 ? CHAN_EXTENDED_IGNORE : CHAN_EXTENDED_READ,
1784 1); 1784 1,
1785 CHAN_SES_WINDOW_DEFAULT);
1785} 1786}
1786 1787
1787/* 1788/*
diff --git a/ssh.c b/ssh.c
index 236f2b522..117a0930b 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.163 2002/02/07 09:35:39 markus Exp $"); 42RCSID("$OpenBSD: ssh.c,v 1.164 2002/02/14 23:28:00 markus Exp $");
43 43
44#include <openssl/evp.h> 44#include <openssl/evp.h>
45#include <openssl/err.h> 45#include <openssl/err.h>
@@ -1145,9 +1145,9 @@ ssh_session2_open(void)
1145 1145
1146 window = CHAN_SES_WINDOW_DEFAULT; 1146 window = CHAN_SES_WINDOW_DEFAULT;
1147 packetmax = CHAN_SES_PACKET_DEFAULT; 1147 packetmax = CHAN_SES_PACKET_DEFAULT;
1148 if (!tty_flag) { 1148 if (tty_flag) {
1149 window *= 2; 1149 window >>= 1;
1150 packetmax *=2; 1150 packetmax >>= 1;
1151 } 1151 }
1152 c = channel_new( 1152 c = channel_new(
1153 "session", SSH_CHANNEL_OPENING, in, out, err, 1153 "session", SSH_CHANNEL_OPENING, in, out, err,