comparison common-session.c @ 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 4cab61369879
comparison
equal deleted inserted replaced
447:278805938dcf 448:9c61e7af0156
67 setnonblocking(ses.signal_pipe[0]); 67 setnonblocking(ses.signal_pipe[0]);
68 setnonblocking(ses.signal_pipe[1]); 68 setnonblocking(ses.signal_pipe[1]);
69 69
70 kexfirstinitialise(); /* initialise the kex state */ 70 kexfirstinitialise(); /* initialise the kex state */
71 71
72 ses.writepayload = buf_new(MAX_TRANS_PAYLOAD_LEN); 72 ses.writepayload = buf_new(TRANS_MAX_PAYLOAD_LEN);
73 ses.transseq = 0; 73 ses.transseq = 0;
74 74
75 ses.readbuf = NULL; 75 ses.readbuf = NULL;
76 ses.decryptreadbuf = NULL; 76 ses.decryptreadbuf = NULL;
77 ses.payload = NULL; 77 ses.payload = NULL;