Skip to content

keepalive cannot be set after connect #905

Description

@tillsteinbach

Keepalive cannot be set after connect (e.g. in the on_connect callback). In MQTTv5 the server can answer the connect with a property of the maximum keep alive that it accepts. I would want to lower the keep alive in on_connect to this value if necessary, but it is not possible anymore after the socket is open.

Also, wouldn't it make sense for the base client to deal with all the v5 properties (keepalive, max_packet_size, etc.) the server can send and set the client values accordingly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: AvailableNo one has claimed responsibility for resolving this issue.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions