diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-12-03 00:04:48 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-12-03 00:04:48 +0800 |
commit | c36f282ad37f00a080a463ae032f0fd0a30873ea (patch) | |
tree | 8f87954a731738d369d6506164677aeaca634f3d /cli-main.c | |
parent | e8d338dde00a04e57189c5f02ee227875e9cf257 (diff) | |
download | dropbear-c36f282ad37f00a080a463ae032f0fd0a30873ea.tar.gz |
- Sockets are set to lowdelay priority initially to improve conneciton setup
time
- Set non-pty connections to bulk for client and server
Diffstat (limited to 'cli-main.c')
-rw-r--r-- | cli-main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,6 +75,9 @@ int main(int argc, char ** argv) { 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) { |