eclipse / paho.mqtt.cpp

Other
1.02k stars 434 forks source link

MQTT traffic over Https Proxy #494

Open muqtheear opened 4 months ago

muqtheear commented 4 months ago

Hi, I have Https proxy configured to return it's own root CA and it decrypt and encrypt the request going between mqtt client and AWS server. SSL handshake and key exchange between mqtt client and proxy server is successfull, but when mqtt client is actually trying to connect, it's failing with the below error.

  1. [2024_05_14_11_46_07] 9128 [MQTTTraceCallback] 20240514 114607.919 Bad MQTT packet, type 3 [2024_05_14_11_46_07] 9128 [MQTTTraceCallback] 20240514 114607.919 (9128) (2)< MQTTPacket_Factory:179 (-1) [2024_05_14_11_46_07] 9128 [MQTTTraceCallback] 20240514 114607.920 CONNECT sent but MQTTPacket_Factory has returned SOCKET_ERROR

  2. [2024_05_14_09_56_32] 8444 [MQTTTraceCallback] 20240514 095632.891 1380 xyz_mmmm <- PUBACK msgid: 21584 [2024_05_14_09_56_32] 8444 [MQTTTraceCallback] 20240514 095632.891 Packet PUBACK received from client xyz_mmmm for message identifier 21584, but no record of that message identifier found

Please suggest me how to fix it.

Thanks & Regards, Muqtheear.S

muqtheear commented 3 months ago

Hi, Any update on this?

Thanks & Regards, Muqtheear.S