Skip to content

Commit

Permalink
Fix bridges possibly not completing connections when WITH_ADNS is in …
Browse files Browse the repository at this point in the history
…use.

Closes eclipse#1960. Thanks to twegener-embertec.
  • Loading branch information
ralight authored and fAuernigg committed Jan 4, 2021
1 parent 7fe9561 commit b1fb521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Expand Up @@ -3,6 +3,8 @@ Broker:
high. Closes #1947.
- Fix LWT not being sent on client takeover when the existing session wasn't
being continued. Closes #1946.
- Fix bridges possibly not completing connections when WITH_ADNS is in use.
Closes #1960.

Clients:
- Fix mosquitto_sub being unable to terminate with Ctrl-C if a successful
Expand Down
2 changes: 2 additions & 0 deletions src/bridge.c
Expand Up @@ -776,6 +776,8 @@ void bridge_check(void)
mux__add_out(context);
}
}else if(rc == MOSQ_ERR_CONN_PENDING){
mux__add_in(context);
mux__add_out(context);
context->bridge->restart_t = 0;
}else{
context->bridge->cur_address++;
Expand Down

0 comments on commit b1fb521

Please sign in to comment.