Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] PINGREQ message timing.

If a client receives a PUBLISH message from the broker - because it had subscribed to some topic - within the keepAlive number of seconds, should the client send the PINGREQ message ? I am not following the text in bold below; the text is from the spec.

The Keep Alive timer, measured in seconds, defines the maximum time interval between
messages received from a client. It enables the server to detect that the network
connection to a client has dropped, without having to wait for the long TCP/IP timeout.
The client has a responsibility to send a message within each Keep Alive time period. In
the absence of a data-related message during the time period, the client sends a
PINGREQ message, which the server acknowledges with a PINGRESP message.


Back to the top