comparison svr-chansession.c @ 871:aa689d140928

- Sockets are set to lowdelay priority initially to improve conneciton setup time - Set non-pty connections to bulk for client and server
author Matt Johnston <matt@ucc.asn.au>
date Tue, 03 Dec 2013 00:04:48 +0800
parents 80af450dae76
children 860e3522f8fc
comparison
equal deleted inserted replaced
870:80af450dae76 871:aa689d140928
578 sessionwinchange(chansess); 578 sessionwinchange(chansess);
579 579
580 /* Read the terminal modes */ 580 /* Read the terminal modes */
581 get_termmodes(chansess); 581 get_termmodes(chansess);
582 582
583 set_sock_priority(ses.sock_out);
584
585 TRACE(("leave sessionpty")) 583 TRACE(("leave sessionpty"))
586 return DROPBEAR_SUCCESS; 584 return DROPBEAR_SUCCESS;
587 } 585 }
588 586
589 static char* make_connection_string() { 587 static char* make_connection_string() {
664 chansess->connection_string = make_connection_string(); 662 chansess->connection_string = make_connection_string();
665 #endif 663 #endif
666 664
667 if (chansess->term == NULL) { 665 if (chansess->term == NULL) {
668 /* no pty */ 666 /* no pty */
667 set_sock_priority(ses.sock_out, DROPBEAR_PRIO_BULK);
669 ret = noptycommand(channel, chansess); 668 ret = noptycommand(channel, chansess);
670 } else { 669 } else {
671 /* want pty */ 670 /* want pty */
672 ret = ptycommand(channel, chansess); 671 ret = ptycommand(channel, chansess);
673 } 672 }