comparison 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
comparison
equal deleted inserted replaced
870:80af450dae76 871:aa689d140928
73 #endif 73 #endif
74 { 74 {
75 int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, 75 int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport,
76 0, &error); 76 0, &error);
77 sock_in = sock_out = sock; 77 sock_in = sock_out = sock;
78 if (cli_opts.wantpty) {
79 set_sock_priority(sock, DROPBEAR_PRIO_LOWDELAY);
80 }
78 } 81 }
79 82
80 if (sock_in < 0) { 83 if (sock_in < 0) {
81 dropbear_exit("%s", error); 84 dropbear_exit("%s", error);
82 } 85 }