comparison cli-main.c @ 941:5daedffd0769

Set tcp priority as follows: if (connecting || ptys || x11) tos = LOWDELAY; else if (tcp_forwards) tos = 0; else tos = BULK; TCP forwards could be either lowdelay or bulk, hence the default priority.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 16 Jul 2014 22:53:32 +0800
parents c88dce72f6d2
children 257f7d5fca97
comparison
equal deleted inserted replaced
940:e9dfb6d15193 941:5daedffd0769
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 }
81 } 78 }
82 79
83 if (sock_in < 0) { 80 if (sock_in < 0) {
84 dropbear_exit("%s", error); 81 dropbear_exit("%s", error);
85 } 82 }