You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running it with the off flag set to false (the flag is here just for convenience, you can simply comment os.Exit(1)) means that the client will exit after PUBLISH receive, but before PUBREC. Once the client is restarted, it will continue where it stopped: sending PUBREC. Though this is not against the protocol specification (at least I could not find anything that confronts this behavior), according to the spec, the client should be waiting for the broker to loop back PUBLISH with DUP=1 in this scenario. It looks that something like removing *packets.PublishPacket from here will solve this issue. I'm willing to send a PR, but I didn't want to do it on my own, before opening this discussion.
The text was updated successfully, but these errors were encountered:
Here is the snippet:
Running it with the
off
flag set tofalse
(the flag is here just for convenience, you can simply comment os.Exit(1)) means that the client will exit after PUBLISH receive, but before PUBREC. Once the client is restarted, it will continue where it stopped: sending PUBREC. Though this is not against the protocol specification (at least I could not find anything that confronts this behavior), according to the spec, the client should be waiting for the broker to loop back PUBLISH with DUP=1 in this scenario. It looks that something like removing*packets.PublishPacket
from here will solve this issue. I'm willing to send a PR, but I didn't want to do it on my own, before opening this discussion.The text was updated successfully, but these errors were encountered: