- Sockets are set to lowdelay priority initially to improve conneciton setup

time
- Set non-pty connections to bulk for client and server
This commit is contained in:
Matt Johnston
2013-12-03 00:04:48 +08:00
parent ddc10b2d0c
commit 998d6cdfc4
6 changed files with 40 additions and 19 deletions

View File

@@ -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) {