|Re: [paho-dev] [Paho Mqtt C Client]: Automatic Reconnect does't work Some times|
Both the traces show
Debug: Connection lost
which implies that the connection lost callback is being invoked.Â If you are using automatic reconnect I wouldn't expect to see the connectFailure callback invoked (actually I think there's a bug looking at the code where I need to zero out the connect failure callback pointer once invoked once).
These traces don't tell me much.Â Taking client library traces by setting MQTT_C_CLIENT_TRACE=ON should give more information.
Also, your settings.Â A connect timeout of 3 seconds?Â That seems
unnecessarily very low.ÂÂ In some circumstances, the TCP connect
might take longer - you're at risk of aborting a successful
On 21/07/2017 07:50, vikas sharma wrote:
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto