Skip to content

fix: clear collision state on reconnection with clean session#1019

Open
kiyov09 wants to merge 2 commits into
bytebeamio:mainfrom
kiyov09:fix-collision-clearing
Open

fix: clear collision state on reconnection with clean session#1019
kiyov09 wants to merge 2 commits into
bytebeamio:mainfrom
kiyov09:fix-collision-clearing

Conversation

@kiyov09
Copy link
Copy Markdown

@kiyov09 kiyov09 commented Jan 8, 2026

When reconnecting with a clean session (session_present=false), the collision state was not being cleared along with the pending packets. This could cause issues if a collision had occurred in the previous session, as the stale collision state would persist into the new session.

This is a fix for #1014

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

When reconnecting with a clean session (session_present=false), the
collision state was not being cleared along with the pending packets.
This could cause issues if a collision had occurred in the previous
session, as the stale collision state would persist into the new
session.
@kiyov09 kiyov09 marked this pull request as ready for review January 8, 2026 02:05
@kiyov09
Copy link
Copy Markdown
Author

kiyov09 commented Jan 8, 2026

Hi @giridher-art, pls take a look at my changes and let me know any additional changes I need to make. Thnx!

@giridher-art
Copy link
Copy Markdown
Collaborator

hey @kiyov09 , we are currently working on a new architectural design for rumqttc . it contains all these changes and we may release it ASAP.

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