|Re: [paho-dev] Paho Mqtt C Client: Automatic reconnect issue when connection is lost.|
connectTimeout is the max length of time to be allowed for the connect process to complete: TCP socket connect, MQTT connect and receipt of CONNACK.
keepAlive time is defined by MQTT: to detect whether the TCP
connection is still alive after the connect has completed.
The two settings are independent. You could try taking a client trace to see if that helps explain what is going on. Set the environment variables:
MQTT_C_CLIENT_TRACE_LEVEL=PROTOCOL (if you just want MQTT
packets, leave this out for the full trace)
On 04/07/2017 06:39, vikas sharma wrote:
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto
Back to the top