Mercurial > dropbear
diff cli-main.c @ 871:aa689d140928
- Sockets are set to lowdelay priority initially to improve conneciton setup
time
- Set non-pty connections to bulk for client and server
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 03 Dec 2013 00:04:48 +0800 |
parents | 220f55d540ae |
children | c88dce72f6d2 |
line wrap: on
line diff
--- a/cli-main.c Mon Dec 02 22:55:43 2013 +0800 +++ b/cli-main.c Tue Dec 03 00:04:48 2013 +0800 @@ -75,6 +75,9 @@ int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, 0, &error); sock_in = sock_out = sock; + if (cli_opts.wantpty) { + set_sock_priority(sock, DROPBEAR_PRIO_LOWDELAY); + } } if (sock_in < 0) {