Fix broken MQTT client by implementing a reconnect "session" - #1228
Merged
Conversation
ctron
force-pushed
the
feature/mqtt_reconnect_1
branch
4 times, most recently
from
May 27, 2021 16:43
0235700 to
2a7a382
Compare
Contributor
Author
|
Yay, that looks better: |
cescoffier
requested changes
May 27, 2021
Contributor
Author
|
Ok, I have been thinking a bit about the remarks for start, subscribe, unsubscribe. Initially my thinking was that this will just record it as a "desired state", and let the state machine try to drive it towards that. However, the ClientHolder actually provides methods to monitor the state changes, and turn that into Futures/Unis. That could also be done directly be the start/subscribe/unsubscribe methods. Moving that logic there, would that be ok, from your point of view? |
ctron
force-pushed
the
feature/mqtt_reconnect_1
branch
2 times, most recently
from
May 28, 2021 09:30
a920eca to
bda190e
Compare
Contributor
|
Yes! |
Contributor
Author
|
Ok, that took a bit: I made the changes, and tests look good now. The PR definitely needs to get squashed 😁 |
Contributor
|
Can you squash? |
This is based on the content of PR vert-x3/vertx-mqtt#197 Fixes smallrye#1181
ctron
force-pushed
the
feature/mqtt_reconnect_1
branch
from
May 31, 2021 09:24
77b3d00 to
cdbeee1
Compare
Contributor
Author
|
Squashed! |
ctron
marked this pull request as ready for review
May 31, 2021 09:31
Contributor
|
Thanks, let's see what the CI says and include it. |
Contributor
|
Thaks a lot @ctron ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is based on the content of PR vert-x3/vertx-mqtt#197
Fixes #1181