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

ErrInvalidPacketID on reconnect #14

Open
dustin opened this issue Jan 21, 2019 · 0 comments
Open

ErrInvalidPacketID on reconnect #14

dustin opened this issue Jan 21, 2019 · 0 comments

Comments

@dustin
Copy link

dustin commented Jan 21, 2019

I've got an application that I'd written using gmq that consistently failed to connect to my MQTT server. I had been subscribed to a couple of topics (wildcarded) at QoS2 and was not using clean sessions. Apparently I lost a connection with some messages in flight and on reconnect, the broker was attempting to redeliver lost messages, confusing the client.

I was able to make my application work again by dropping to QoS0 and getting a clean session (probably only the latter mattered), but I didn't notice the loss for several hours, so I can't make a reliable app currently with QoS > 0 and reusing sessions.

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

No branches or pull requests

1 participant