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

Wrap packet id after 0xffff #118

Merged
merged 1 commit into from
Mar 25, 2019
Merged

Wrap packet id after 0xffff #118

merged 1 commit into from
Mar 25, 2019

Conversation

larsin
Copy link
Contributor

@larsin larsin commented Mar 25, 2019

For long running connections, pub acks times out because packet id wraps on 65356, causing timeout errors for ever.
This pr makes the packet id wrap and adds a contract to MQTT::Packet#encode_short.

@njh njh merged commit 878639e into njh:master Mar 25, 2019
@njh
Copy link
Owner

njh commented Mar 25, 2019

Thank you for this fix

@njh njh mentioned this pull request Feb 16, 2023
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