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

Reset PUBLISH/PUBREL command's deadline interval when connection closed #302

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

matsukaz
Copy link
Contributor

@matsukaz matsukaz commented Apr 6, 2017

When connection got closed after publishing message but before receiving PUBREC, stored messsage's deadline interval are set as DUPTIMEOUT (such as 20 sec).
This causes other messages that have never published overtakes the message after reconnection.

I've fixed this problem by resetting the message's deadline interval if connection got closed.

@ckrey
Copy link
Contributor

ckrey commented Apr 6, 2017

@matsukaz thank you so much

@ckrey ckrey merged commit e0f0661 into novastone-media:master Apr 6, 2017
@matsukaz matsukaz deleted the reset_deadline_interval branch April 6, 2017 09:32
ckrey pushed a commit that referenced this pull request May 10, 2017
Release date 2017-05-10

[FIX] Fix random crashes on core data persistence #314
[FIX] use_frameworks!
[FIX] Swift Tests output
[FIX] CONNACK return codes
[NEW] access publish data back messageDelivered is called? closes #296
[FIX] XCode 8.3.1 warnings and documentation
[NEW] MQTT v5 properties
[FIX] Reset PUBLISH/PUBREL command's deadline interval when connection closed #302
[NEW] initial version 5
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