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

Handle MessageExpiryInterval early enough for retained messages to honor it #442

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dariopb
Copy link

@dariopb dariopb commented Dec 19, 2024

Setting the pk.Expiry member to the right value early enough so it is correctly saved when the message is retained in RetainMessage.

Without the change, even if we set the MessageExpiryInterval for retained message, the message won't expire at that interval since it was stored already with the default value (0) for pk.Expiry.

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