Skip to content

GH-8550: MQTT: Always re-subscribe on re-connect #8553

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

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

artembilan
Copy link
Member

Fixes #8550

Turns out the Paho MQTT client does not re-subscribe when connection re-established on automatic reconnection

  • Fix Mqttv5PahoMessageDrivenChannelAdapter to always subscribe to its topics in the connectComplete() independently of the reconnect status
  • Verify behavior with MOSQUITTO_CONTAINER image restart in Docker

Fixes spring-projects#8550

Turns out the Paho MQTT client does not re-subscribe when connection re-established on automatic reconnection

* Fix `Mqttv5PahoMessageDrivenChannelAdapter` to always subscribe to its topics in the `connectComplete()` independently of the `reconnect` status
* Verify behavior with `MOSQUITTO_CONTAINER` image restart in Docker
@garyrussell garyrussell merged commit 8e27b1c into spring-projects:5.5.x Feb 15, 2023
@artembilan artembilan deleted the GH-8550-5.5.x branch February 28, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants