Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] mosquitto_connect_bind_async() and mosquitto_loop_start() order of usage

Hi Chris,

It should work either way, as you say, but there have been bugs around this in the past. Since at least 2.0 there have been tests that cover both cases, so I'm confident if you upgrade to that it should work as expected.

Regards,

Roger

On Mon, 1 May 2023 at 18:46, Maynard, Chris via mosquitto-dev <mosquitto-dev@xxxxxxxxxxx> wrote:
Hello list,
 
We had been using mosquitto 1.4.14 but recently updated to 1.6.8 and discovered that our client could no longer connect to the broker.
 
The documentation for mosquitto_connect_bind_async() indicates that, “May be called before or after mosquitto_loop_start.”  Well, we had been calling it *before* mosquitto_loop_start().  Once I swapped the order and called it *after* mosquitto_loop_start(), our client could once again successfully connect.
 
Has anyone run into this before?  Is this a known problem?  I couldn’t find any open issue for this.
Thanks.
- Chris
 
 
 
 
 
 
 
 
 
 
 
CONFIDENTIALITY NOTICE: This message is the property of International Game Technology PLC and/or its subsidiaries and may contain proprietary, confidential or trade secret information. This message is intended solely for the use of the addressee. If you are not the intended recipient and have received this message in error, please delete this message from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited.
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top