Skip to content

Added inflight subscribe and unsubscribe packet_id clean up mechanism. #612

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

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

redboltz
Copy link
Owner

@redboltz redboltz commented Mar 9, 2020

No description provided.

@redboltz
Copy link
Owner Author

redboltz commented Mar 9, 2020

  1. Client connects with clean_session/clean_start=false.
  2. Send subscribe or unsubscribe.
  3. force_disconnect before suback/unsuback is received.
  4. Connect again with clean_session/clean_start=false.

At the step 4, allocated packet_id at the step2 is still occupied.
This PR fixes the problem.

@redboltz redboltz merged commit d155b8f into master Mar 9, 2020
@redboltz redboltz deleted the fix_sub_unsub_packet_id_leak branch March 9, 2020 08:41
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.

1 participant