Add a new keepalive config: mqtt.keepalive_check_interval(default is 30s)
The time interval to check for mqtt packets.
range is [1s, Interval(in connect packet) div 2 s].
So the time to determine if a timeout is needed is:
min: interval * multiplier
max: interval multiplier + 1 check_interval
eg:
interval = 60s, multiplier = 1.5, check_interval = 30s
should be keepalive_timeout between 90s(60*1.5) and 120s(60*1.5+30)
If the user expects to reduce this section. You can reduce the factor:
interval = 60s, multiplier = 1.5, check_interval = 10s
should be keepalive_timeout between 90s(60 * 1.5) and 100s(60 * 1.5+10)
Release version: v/e5.7.2
Summary
PR Checklist
Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:
[ ] Added tests for the changes
[ ] Added property-based tests for code which performs user input validation
[ ] Changed lines covered in coverage report
[ ] Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
[ ] For internal contributor: there is a jira ticket to track this change
[ ] Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
[ ] Schema changes are backward compatible
Checklist for CI (.github/workflows) changes
[ ] If changed package build workflow, pass this action (manual trigger)
[ ] Change log has been added to changes/ dir for user-facing artifacts update
Fixes https://emqx.atlassian.net/browse/EMQX-11151
https://github.com/emqx/emqx/issues/11685
Add a new keepalive config: mqtt.keepalive_check_interval(default is 30s) The time interval to check for mqtt packets. range is
[1s, Interval(in connect packet) div 2 s]
.So the time to determine if a timeout is needed is:
eg: interval = 60s, multiplier = 1.5, check_interval = 30s should be keepalive_timeout between
90s(60*1.5) and 120s(60*1.5+30)
If the user expects to reduce this section. You can reduce the factor: interval = 60s, multiplier = 1.5, check_interval = 10s should be keepalive_timeout between
90s(60 * 1.5) and 100s(60 * 1.5+10)
Release version: v/e5.7.2
Summary
PR Checklist
Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:
changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md
filesChecklist for CI (.github/workflows) changes
changes/
dir for user-facing artifacts update