comparison svr-chansession.c @ 941:5daedffd0769

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.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 16 Jul 2014 22:53:32 +0800
parents 860e3522f8fc
children 36eacc322e00
comparison
equal deleted inserted replaced
940:e9dfb6d15193 941:5daedffd0769
251 chansess->agentlistener = NULL; 251 chansess->agentlistener = NULL;
252 chansess->agentfile = NULL; 252 chansess->agentfile = NULL;
253 chansess->agentdir = NULL; 253 chansess->agentdir = NULL;
254 #endif 254 #endif
255 255
256 channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE;
257
256 return 0; 258 return 0;
257 259
258 } 260 }
259 261
260 static struct logininfo* 262 static struct logininfo*
666 chansess->connection_string = make_connection_string(); 668 chansess->connection_string = make_connection_string();
667 #endif 669 #endif
668 670
669 if (chansess->term == NULL) { 671 if (chansess->term == NULL) {
670 /* no pty */ 672 /* no pty */
671 set_sock_priority(ses.sock_out, DROPBEAR_PRIO_BULK);
672 ret = noptycommand(channel, chansess); 673 ret = noptycommand(channel, chansess);
674 if (ret == DROPBEAR_SUCCESS) {
675 channel->prio = DROPBEAR_CHANNEL_PRIO_BULK;
676 update_channel_prio();
677 }
673 } else { 678 } else {
674 /* want pty */ 679 /* want pty */
675 ret = ptycommand(channel, chansess); 680 ret = ptycommand(channel, chansess);
676 } 681 }
677 682