#69 MQTT: ping interval should = keep alive time

1.0.0.0: EoN
closed
None
2020-10-15
2020-10-09
i-campbell
No

The MQTT spec says "If the Keep Alive value is non-zero and the Server does not receive a Control Packet from the Client within one and a half times the Keep Alive time period, it MUST disconnect the Network Connection to the Client as if the network had failed"

IS: currently in our library Ping interval is fixed at 15s, but KeepAlive is set by the user. In the example it is set to 60 seconds.
SHUOLD: The ping interval should be set equal to the KeepAlive time

Discussion

  • i-campbell

    i-campbell - 2020-10-09
    • Owner: aliazzz --> h-hermsen
    • Milestone: 9.9.9.9: Backlog --> 1.0.0.0: EoN
     
  • hermsen

    hermsen - 2020-10-13
    • status: open --> closed
     
  • hermsen

    hermsen - 2020-10-13

    In trunk with 0.9.0.4

     
  • i-campbell

    i-campbell - 2020-10-13
    • status: closed --> open
    • assigned_to: h-hermsen --> i-campbell
     
  • i-campbell

    i-campbell - 2020-10-13

    Reopened, because currently it is set at T#15ms, for a keep alive of 15 (seconds).
    This is one thousand times smaller than it should be.

     
  • hermsen

    hermsen - 2020-10-13

    Just slap 1000* in between the TO_TIME conversion, problem solved.

     
  • hermsen

    hermsen - 2020-10-15
    • status: open --> closed
     

Log in to post a comment.