comparison svr-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 cba37fe1ddc8
children 2b3a8026a6ce
comparison
equal deleted inserted replaced
1857:6022df862942 1859:1d86a58fb52d
275 chansess->agentlistener = NULL; 275 chansess->agentlistener = NULL;
276 chansess->agentfile = NULL; 276 chansess->agentfile = NULL;
277 chansess->agentdir = NULL; 277 chansess->agentdir = NULL;
278 #endif 278 #endif
279 279
280 channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; 280 /* Will drop to DROPBEAR_PRIO_NORMAL if a non-tty command starts */
281 channel->prio = DROPBEAR_PRIO_LOWDELAY;
281 282
282 return 0; 283 return 0;
283 284
284 } 285 }
285 286
732 733
733 if (chansess->term == NULL) { 734 if (chansess->term == NULL) {
734 /* no pty */ 735 /* no pty */
735 ret = noptycommand(channel, chansess); 736 ret = noptycommand(channel, chansess);
736 if (ret == DROPBEAR_SUCCESS) { 737 if (ret == DROPBEAR_SUCCESS) {
737 channel->prio = DROPBEAR_CHANNEL_PRIO_BULK; 738 channel->prio = DROPBEAR_PRIO_NORMAL;
738 update_channel_prio(); 739 update_channel_prio();
739 } 740 }
740 } else { 741 } else {
741 /* want pty */ 742 /* want pty */
742 ret = ptycommand(channel, chansess); 743 ret = ptycommand(channel, chansess);