Skip to content

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