Skip to content
Snippets Groups Projects
Commit 1b1997bf authored by Matt Johnston's avatar Matt Johnston
Browse files

Update priority once the socket is open

--HG--
branch : fastopen
parent 34f9adb1
Branches
Tags
No related merge requests found
...@@ -100,6 +100,7 @@ void cli_connected(int result, int sock, void* userdata, const char *errstring) ...@@ -100,6 +100,7 @@ void cli_connected(int result, int sock, void* userdata, const char *errstring)
dropbear_exit("Connect failed: %s", errstring); dropbear_exit("Connect failed: %s", errstring);
} }
ses.sock_in = ses.sock_out = sock; ses.sock_in = ses.sock_out = sock;
update_channel_prio();
} }
void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) { void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) {
......
...@@ -552,6 +552,11 @@ void update_channel_prio() { ...@@ -552,6 +552,11 @@ void update_channel_prio() {
TRACE(("update_channel_prio")) TRACE(("update_channel_prio"))
if (ses.sock_out < 0) {
TRACE(("leave update_channel_prio: no socket"))
return;
}
new_prio = DROPBEAR_PRIO_BULK; new_prio = DROPBEAR_PRIO_BULK;
for (i = 0; i < ses.chansize; i++) { for (i = 0; i < ses.chansize; i++) {
struct Channel *channel = ses.channels[i]; struct Channel *channel = ses.channels[i];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment