Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
447:278805938dcf | 448:9c61e7af0156 |
---|---|
348 setnonblocking(STDIN_FILENO); | 348 setnonblocking(STDIN_FILENO); |
349 | 349 |
350 channel->errfd = STDERR_FILENO; | 350 channel->errfd = STDERR_FILENO; |
351 setnonblocking(STDERR_FILENO); | 351 setnonblocking(STDERR_FILENO); |
352 | 352 |
353 channel->extrabuf = cbuf_new(RECV_MAXWINDOW); | 353 channel->extrabuf = cbuf_new(RECV_MAX_WINDOW); |
354 | 354 |
355 if (cli_opts.wantpty) { | 355 if (cli_opts.wantpty) { |
356 send_chansess_pty_req(channel); | 356 send_chansess_pty_req(channel); |
357 } | 357 } |
358 | 358 |