diff cli-chansession.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 a9e0ddac5ba7
children 3e6c536bc023
line wrap: on
line diff
--- a/cli-chansession.c	Thu Jul 19 15:54:18 2007 +0000
+++ b/cli-chansession.c	Tue Jul 24 15:40:23 2007 +0000
@@ -350,7 +350,7 @@
 	channel->errfd = STDERR_FILENO;
 	setnonblocking(STDERR_FILENO);
 
-	channel->extrabuf = cbuf_new(RECV_MAXWINDOW);
+	channel->extrabuf = cbuf_new(RECV_MAX_WINDOW);
 
 	if (cli_opts.wantpty) {
 		send_chansess_pty_req(channel);