Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add keep alive config option for identifier rejected error #9803

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

helenosheaa
Copy link
Member

resolves #9763

Users were getting a identifier rejected error when using the plugin with mosquitto v2.0.12

eclipse/mosquitto v2.0.12 has a bug where you cannot set keep_alive to 0. This is now a known bug which will be fixed in the next release v2.0.13.

I've added a config option for keep_alive so that users can decide themselves what they want to set this to, and so users of v2.0.12 are still able to use this plugin.

Defaults to 0 (turning the keep alive feature off) as this has been the behavior of this plugin for the last 4 years. The library github.com/eclipse/paho.mqtt.golang we are using defaults keep_alive to 30.

Added documentation around the purpose of the config option and updated the integration test so if you are running any version of mosquitto it still passes.

…h eclipse/mosquitto version combined with this plugin, update test
@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Sep 22, 2021
@helenosheaa helenosheaa added fix pr to fix corresponding bug and removed feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin labels Sep 23, 2021
@helenosheaa helenosheaa merged commit 3990ab5 into master Oct 1, 2021
@helenosheaa helenosheaa deleted the keep-alive-opt branch October 1, 2021 15:10
reimda pushed a commit that referenced this pull request Oct 6, 2021
…h eclipse/mosquitto version combined with this plugin, update test (#9803)

(cherry picked from commit 3990ab5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mosquitto 2.0.12 - Keep alive 0 results in 'identifier rejected
2 participants