Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] AsyncClient: How to get connection failure reason
  • From: "Kumar, Pankaj" <pankaj_kumar2@xxxxxxxxxx>
  • Date: Thu, 5 Aug 2021 05:56:15 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=baxter.com; dmarc=pass action=none header.from=baxter.com; dkim=pass header.d=baxter.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-SenderADCheck; bh=hvBRBDwsZTwnwJyF7Zu3RFq/DGPDjl9DaGMP49a/gG0=; b=R/AkfKCbrwAjSqcBo3GFPAdTb7UEnK89wc0QqSNL6949KuSiFNcHdT+68lGrYDqJwZjZozGgKhJkUcIpPmyL+lkvSUaF3e1GbsF3HvmkaP8yeRhBHo67a/3bBZpPct2CI8AHYzLHW9ojnWwwBsMqlI1g/2kxbRAQAEB8/1BBqfTbxu395lklEPfLQQnKorzzDU0bg0214EzEWRU9KYKRhD+45tjep6u0z6KRxeI1Aw4C5eKNhTfVioDT8kqbJ7SFgXRJGFvst7swZN0S4k1s5KEpOVZlUUl1SgKQlHHllYD1ve4gZuigH7xyh3UHPWGXT7Vyv9BlB+VNuJelGp616Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bktwbSbxe6fjIa4Y4UV4aXmo5TgL9KICNrR12NT57jkPhme1hWohiWW27OcuCPsu/TOOTxJHVrVcL2ERYvHqkiASRrNF0ZZYabYLcpzgWtLnMV4xKD6CzpqHMjeXsiKrud0w8Spt1FDlkX9eTRhlRGqrjac3g914z2NW/9Las119B3LPX11OGdXzbW1ll6VmhmBJ/W/x8Q6mWOFJWb7rN/0oDFUuR1EEq/FnlM3tr4H9ZIF0ev70H241vzv4993oxMzq8ZHQCw8qAS1Loo46PnHj8tksB7Q7n3WZCC1bxxBgW4RTJ8K8vURrneE3WPLIpbvgHzo63lHkA5OtE2XuBA==
  • Delivered-to: paho-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/paho-dev/>
  • List-help: <mailto:paho-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/paho-dev>, <mailto:paho-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/paho-dev>, <mailto:paho-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdeDdzI2kDmbZTU2Tci0JsLdYwMWCAGR13XA
  • Thread-topic: AsyncClient: How to get connection failure reason

Can someone please reply.

 

From: Kumar, Pankaj
Sent: Wednesday, July 28, 2021 11:51 AM
To: General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Subject: AsyncClient: How to get connection failure reason

 

Hello Dev,

 

We are using async_client of ‘paho.mqtt.cpp’ library.

 

After calling connect() API if connection doesn’t go through, is there a way to know reason of failure ?

 

There could be multiple reasons why connection may not go through 1) Remote IP not reachable 2) TLS certificate mismatch etc.

I am looking for an API/callback which can tell what went wrong after calling connect API on async_client.  

 

Regards

Pankaj

 


Back to the top