Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bridge connection fails with multiple addresses #481
We have bridge configured with multiple addresses. when the primary(first) address goes down(manually or due to some issue) mosquitto trying to connect to the second address specified in bridge configuration but all time gets error:
if to place this address on a first position in configuration, connection is created.
It is proving difficult to deal with for non blocking sockets and so will require a bit of a think to see whether it can be done without a lot of code change. The problem is that connect() with a non blocking socket doesn't allow you to distinguish between a potentially successful connection and the situation where the connection is definitely refused. You have to wait for that to resolve, and the code isn't set up for that type of check at the moment.
referenced this issue
Aug 29, 2017
hi, meet this same problem with the version 1.4.14
addresses server1:8883 server2:8883
@ralight is there any update for this issue? thanks