comparison channel.h @ 448:9c61e7af0156

Rearrange the channel buffer sizes into three neat use-editable values in options.h. Increasing RECV_MAX_WINDOW gives big network performance increases - even with the present buffers (which haven't changed) it performs a lot better. Next step is to make the window size a cmdline option.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Jul 2007 15:40:23 +0000
parents a01c0c8e543a
children cf376c696dfc
comparison
equal deleted inserted replaced
447:278805938dcf 448:9c61e7af0156
43 #define SSH_OPEN_RESOURCE_SHORTAGE 4 43 #define SSH_OPEN_RESOURCE_SHORTAGE 4
44 44
45 /* Not a real type */ 45 /* Not a real type */
46 #define SSH_OPEN_IN_PROGRESS 99 46 #define SSH_OPEN_IN_PROGRESS 99
47 47
48 #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11
49 connection, so can't be _too_ small */
50
51 #define CHAN_EXTEND_SIZE 3 /* how many extra slots to add when we need more */ 48 #define CHAN_EXTEND_SIZE 3 /* how many extra slots to add when we need more */
52
53 #define RECV_MAXWINDOW 8000 /* tweak */
54 #define RECV_WINDOWEXTEND 1000 /* We send a "window extend" every
55 RECV_WINDOWEXTEND bytes */
56 #define RECV_MAXPACKET RECV_MAXWINDOW /* tweak */
57 49
58 struct ChanType; 50 struct ChanType;
59 51
60 struct Channel { 52 struct Channel {
61 53