-
Notifications
You must be signed in to change notification settings - Fork 231
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
Fix for unlimited maximum message expiry interval #315
Conversation
I will try to look at this today, apologies for the delay |
…et to 0 or math.MaxInt64 for no expiry, and optimize some of the code and test cases.
Pull Request Test Coverage Report for Build 6541851124
💛 - Coveralls |
…ion, and optimize some of the code and test cases.
… set to math.MaxInt64 for no expiry.
@werbenhu The current changes on the branch don't fully comply with the scenarios in #315 (comment) - With I'd recommend reviewing the diff I posted above as I believe this addresses all the scenarios we are trying to fix. |
…iration checks if MaximumMessageExpiryInterval is set to 0; optimize code and test cases.
It's done now. |
There still seem to be some issues here, I'll need to make some submissions later |
Which issues are you seeing? |
…he message's own expiration(for v5) evaluation.
@mochi-co I think @dadebue is right, and I've made some changes to it. |
@mochi-co take a look at the current implementation. I always feel that what's written here in 'maximumExpiry=0' carries a dual meaning:
|
I like the current implementation. Maybe we should change the name |
…e client.ClearInflights() is used to clear all inflight messages.
I approve the changes with this comment |
@dadebue Because you are the author of this PR.:smile: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took a bit of a confusing road to get here, but I've given it a thorough review and it makes sense to me, and I think this is an excellent solution which makes the overall codebase a bit cleaner and easier to understand. Paho and unit tests are also passing, so I approve! Great job @werbenhu @dadebue
@dadebue Apologies, I've had some big life stuff going on and the time got away from me. I've released these changes as v2.4.2 :) |
No worries and thanks :) |
fixes #306