Skip to content

PINGREQ packet is sent even when there was a MQTT control Packet is that duration. #33

Description

@Singa17

As per the specification , PINGREQ must be sent only when there is no MQTT control packets.
However, when we test, MQTT client publish the data and PINGREQ is also sent out.
Test Scenario:
Keep Alive = 60 seconds

Time 0s: CONNECT
Time 10s: PUBLISH is sent
Time 30s: PUBLISH is sent
Time 45s: PINGREQ is sent------------> In this scenario, there shall not be any PINGREQ. why 45s? 75% of Keep alive.
Time 50s: SUBSCRIBE
Time 70s: PUBLISH

Image

If Keep Alive is non-zero and in the absence of sending any other MQTT Control Packets, the Client MUST 680 send a PINGREQ packet [MQTT-3.1.2-20].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions