comparison 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
comparison
equal deleted inserted replaced
1857:6022df862942 1859:1d86a58fb52d
346 channel->bidir_fd = 0; 346 channel->bidir_fd = 0;
347 return 0; 347 return 0;
348 } 348 }
349 349
350 static int cli_init_netcat(struct Channel *channel) { 350 static int cli_init_netcat(struct Channel *channel) {
351 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
352 return cli_init_stdpipe_sess(channel); 351 return cli_init_stdpipe_sess(channel);
353 } 352 }
354 353
355 static int cli_initchansess(struct Channel *channel) { 354 static int cli_initchansess(struct Channel *channel) {
356 355
359 #if DROPBEAR_CLI_AGENTFWD 358 #if DROPBEAR_CLI_AGENTFWD
360 if (cli_opts.agent_fwd) { 359 if (cli_opts.agent_fwd) {
361 cli_setup_agent(channel); 360 cli_setup_agent(channel);
362 } 361 }
363 #endif 362 #endif
364
365 if (cli_opts.wantpty) { 363 if (cli_opts.wantpty) {
366 send_chansess_pty_req(channel); 364 send_chansess_pty_req(channel);
367 channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; 365 channel->prio = DROPBEAR_PRIO_LOWDELAY;
368 } else {
369 channel->prio = DROPBEAR_CHANNEL_PRIO_BULK;
370 } 366 }
371 367
372 send_chansess_shell_req(channel); 368 send_chansess_shell_req(channel);
373 369
374 if (cli_opts.wantpty) { 370 if (cli_opts.wantpty) {
375 cli_tty_setup(); 371 cli_tty_setup();
376 channel->read_mangler = cli_escape_handler; 372 channel->read_mangler = cli_escape_handler;
377 cli_ses.last_char = '\r'; 373 cli_ses.last_char = '\r';
378 } 374 }
379 375
380 return 0; /* Success */ 376 return 0; /* Success */
381 } 377 }
382 378
383 #if DROPBEAR_CLI_NETCAT 379 #if DROPBEAR_CLI_NETCAT