Mercurial > dropbear
diff cli-chansession.c @ 1859:1d86a58fb52d
Leave non-interactive at default QoS class
Lower class levels are less well defined, and non-interactive
SSH can carry various different types of applications.
This change also sets lowdelay class (AF21) earlier in an an outbound
dbclient session
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Jan 2022 14:34:10 +0800 |
parents | a7cc3332d8ab |
children |
line wrap: on
line diff
--- a/cli-chansession.c Tue Jan 25 17:32:20 2022 +0800 +++ b/cli-chansession.c Thu Jan 27 14:34:10 2022 +0800 @@ -348,7 +348,6 @@ } static int cli_init_netcat(struct Channel *channel) { - channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; return cli_init_stdpipe_sess(channel); } @@ -361,12 +360,9 @@ cli_setup_agent(channel); } #endif - if (cli_opts.wantpty) { send_chansess_pty_req(channel); - channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; - } else { - channel->prio = DROPBEAR_CHANNEL_PRIO_BULK; + channel->prio = DROPBEAR_PRIO_LOWDELAY; } send_chansess_shell_req(channel); @@ -375,7 +371,7 @@ cli_tty_setup(); channel->read_mangler = cli_escape_handler; cli_ses.last_char = '\r'; - } + } return 0; /* Success */ }