mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
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.
This commit is contained in:
@@ -75,9 +75,6 @@ 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) {
|
||||
|
||||
Reference in New Issue
Block a user