The library allows setting the keepalive to any value (default is 0, which disables it). However, when you set a keepalive value, the library does not automatically send pings to the server as expected. This causes the server to disconnect the client after 1.5 times the specified keepalive duration.
Are there any possible solutions to this?
I tested this with Mosquitto and HiveMQ serverless.
Hi!
Here’s some example code to reproduce the issue:
The library allows setting the keepalive to any value (default is 0, which disables it). However, when you set a keepalive value, the library does not automatically send pings to the server as expected. This causes the server to disconnect the client after 1.5 times the specified keepalive duration.
Are there any possible solutions to this?
I tested this with Mosquitto and HiveMQ serverless.