1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-05-09 01:01:11 +08:00

Fix bridges possibly not completing connections when WITH_ADNS is in use.

Closes #1960. Thanks to twegener-embertec.
This commit is contained in:
Roger A. Light 2020-12-17 11:31:38 +00:00
parent de141540fb
commit d05a49a2cf
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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++;