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
  • From: "Maynard, Chris" <Christopher.Maynard@xxxxxxx>
  • Date: Tue, 2 May 2023 13:48:52 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=igt.com; dmarc=pass action=none header.from=igt.com; dkim=pass header.d=igt.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bHoRsCcyhQGcA0EqZbfDGcaOo4r0zwEWEZlp3wodofI=; b=dZTIJzzclzi9qI2pYge8vLH2KKvQ2SyLzPOvAXHAYnnOMJn6Gnvr5RdIxKY8aE6iJj1gYB73xCe6CsKLwCJlL5+z1Pss18RtcSOiu/RKb7WLfanVBj35Om3lu3DdzWx6zTcqO1tMTAn3m3gwEHMk1N7FJPHpkS3tzAensQZVbX42FP88yEGgpn6OTfcLTUjF7huxm9M40i2bZNTxTmE2IdCbl1ObUxjTMlL/BzC2VAPvhu5raLn0/RZrB9u7uaJUfyMC35mVhiLJe+nSJf33uMJWnR4MDIWrLW4oxUeqqdZLzGOFqhTEF/2W+1cjisN0oYIQJJusx1Fhq20aY83ufQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=imrLL+423OAXlYn+IdL/5RlaHjp4kQf5ihh90BtPVpBKEvxcBIa0FvOZiicJQdzvVLmVGCVenkq4sfCCEhaJa2FQ1XzyHm4AAANwZxyN3XiKsipcGN7pRfS9wi9IssPTAsjkS2Jv8ZwNn4RkgSmt0AoHG8k5tb7nAEPuqBicfvDjzeDvVb7rxJT0wac6DSZQQixOlquBUXjduta0xFDFzHRXeQ3p45QeXCNOoyZjPuDp/x4bG2xin+GZA2BLWksDOAEYp64bkKAwG3JZ0wKPkYkoV+pTjfjMPUfsW6N3G4N4x3tNSjWBlyUt45hlQ4cth4mxwnHJiWP5V7CUUAmihw==
  • Delivered-to: mosquitto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mosquitto-dev/>
  • List-help: <mailto:mosquitto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Adl8VMVLrUkTb68xS0KM7tbi3nCU4gAplOQAAABFXjA=
  • Thread-topic: [mosquitto-dev] mosquitto_connect_bind_async() and mosquitto_loop_start() order of usage

OK, thank you for the feedback Roger.  The next time we update I may test the original order again out of curiosity, but since the order really doesn’t seem to make any difference, I’ll likely just leave it as it is now.

 

Thanks.

- Chris

 

From: Roger Light <roger@xxxxxxxxxx>
Sent: Tuesday, May 2, 2023 9:36 AM
To: General development discussions for the mosquitto project <mosquitto-dev@xxxxxxxxxxx>
Cc: Maynard, Chris <Christopher.Maynard@xxxxxxx>
Subject: 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.

Back to the top