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

1.deal with pubrel, ignore the ret of msg remove, 2.delete the same m… #1629

Closed
wants to merge 1 commit into from

Conversation

RedCrab1
Copy link

  • in function handle__pubrel(), ingore the return value of message__remove() . when deal with the pubrel, received unexpected rel is apparently normal behaviour, if returned the rc, the loop may exit.

  • in function message__queue(), add the check for same mid. if found the same mid, delete it. in some test scenarios, the server may reset, but client not reset , it may keep the older message, and the the next time connect to the server, it will received the same mid message.and then when get message from the queue, it will get unexpected message.

  • If you are contributing a bugfix, is your work based off the fixes branch?

  • Have you added an explanation of what your changes do and why you'd like us to include them?

  • Have you successfully run make test with your changes locally?


ralight added a commit that referenced this pull request Mar 19, 2020
@ralight
Copy link
Contributor

ralight commented May 5, 2020

I believe this has already been fixed in a different way, so I'm closing this PR. Thanks for taking the time to submit it.

@ralight ralight closed this May 5, 2020
FranciscoKnebel pushed a commit to Open-Digital-Twin/mosquitto that referenced this pull request Jul 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants