Skip to content

Keep Alive has an arbitrary limit #643

@danieldougherty

Description

@danieldougherty

Expected Behavior

According to both MQTT specs, the Keep Alive value should be an integer from 0 to 65,535. A non-zero value indicates the number of seconds between messages before the client must send a pingreq; a value of 0 disables the keep-alive mechanism.

Current Behavior

Attempting to set a keep-alive value of less than 5 seconds fails with the output 'Keep alives should be >= 5 secs'. This makes it impossible to set a 0 value, or to use shorter intervals for testing/time-sensitive applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersstaleNot moving forward; blocked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions