Comment 0 for bug 880863

Revision history for this message
Rob Pridham (rob-pridham) wrote :

I use the Mosquitto C library as a client, and the Mosquitto server as the broker, both version 0.13.

When I set the client keepalive to a higher than standard number, e.g. 20 minutes, the server decides that the client has disconnected after 90 seconds.

When I set the client keepalive to the default 60 seconds, the client sends PINGRESP before the 90 second period and thus all is well.

I added some output to the server code and it receives the keepalive value OK in mqtt3_handle_connect(). However when read back in mosquitto_main_loop (from the database?) it returns 60 seconds again.