Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Keep alive treatment on the Paho Java client

The java client closes the socket when KeepAlive time interval has expired.

As my understanding of the MQTT speck, the client shall send the ping request to the Server within the KeepAlive time interval if no data was sent by the application. 
By doing that the connection will be kept open until it will be closed proactively by the client application or by the server.

On the today's Paho Java implementation I see that if I set the KeepAlive to e.g. 1 minute the connection is being closed after 1 minute automatically, so i need to reopen it again.

Do you have any opinion if this is a bug or a feature :)

Kind Regards
Oleg

Back to the top