Mercurial > dropbear
comparison common-session.c @ 1031:64c0aa01e2b6 fastopen
Update priority once the socket is open
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 20 Feb 2015 22:13:53 +0800 |
parents | 02baa0b334e8 |
children | 0da8ba489c23 |
comparison
equal
deleted
inserted
replaced
1030:1fff5d7163f6 | 1031:64c0aa01e2b6 |
---|---|
550 int any = 0; | 550 int any = 0; |
551 unsigned int i; | 551 unsigned int i; |
552 | 552 |
553 TRACE(("update_channel_prio")) | 553 TRACE(("update_channel_prio")) |
554 | 554 |
555 if (ses.sock_out < 0) { | |
556 TRACE(("leave update_channel_prio: no socket")) | |
557 return; | |
558 } | |
559 | |
555 new_prio = DROPBEAR_PRIO_BULK; | 560 new_prio = DROPBEAR_PRIO_BULK; |
556 for (i = 0; i < ses.chansize; i++) { | 561 for (i = 0; i < ses.chansize; i++) { |
557 struct Channel *channel = ses.channels[i]; | 562 struct Channel *channel = ses.channels[i]; |
558 if (!channel || channel->prio == DROPBEAR_CHANNEL_PRIO_EARLY) { | 563 if (!channel || channel->prio == DROPBEAR_CHANNEL_PRIO_EARLY) { |
559 if (channel && channel->prio == DROPBEAR_CHANNEL_PRIO_EARLY) { | 564 if (channel && channel->prio == DROPBEAR_CHANNEL_PRIO_EARLY) { |