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

is it possible to add support for retained message expiration? #182

Closed
sufish opened this issue Jul 2, 2015 · 8 comments
Closed

is it possible to add support for retained message expiration? #182

sufish opened this issue Jul 2, 2015 · 8 comments
Assignees
Milestone

Comments

@sufish
Copy link

sufish commented Jul 2, 2015

i know it's not specified by MQTT protocol, but for offline message handling, it will be very useful if message can be set to expire after some time interval.

@emqplus
Copy link
Contributor

emqplus commented Jul 7, 2015

@sufish, expired fo all retained messages?

@sufish
Copy link
Author

sufish commented Jul 16, 2015

General expiration for pesistented messages, like retained and QoS1,2, offline messages

@berrywira
Copy link

same with my problem. +1

@brangi
Copy link

brangi commented Oct 7, 2015

+1

@lsxredrain
Copy link

if use redis to stroe message ,it is very easy to support for retained message expiration.

@emqplus emqplus added this to the 0.12.1 milestone Oct 8, 2015
@emqplus emqplus self-assigned this Oct 8, 2015
emqplus pushed a commit that referenced this issue Oct 9, 2015
@emqplus
Copy link
Contributor

emqplus commented Oct 9, 2015

Configure the expiration time in etc/emqttd.config:

        %% Retained messages
        {retained, [
            %% Expired after seconds, never expired if 0
            {expired_after, 0},

            %% Max number of retained messages
            {max_message_num, 100000},

            %% Max Payload Size of retained message
            {max_playload_size, 65536}
        ]},

emqplus pushed a commit that referenced this issue Oct 9, 2015
fix issue #182 -  retained message expiration
@emqplus emqplus added the Feature label Oct 9, 2015
@emqplus
Copy link
Contributor

emqplus commented Oct 9, 2015

@sufish, @brangi, @berrywira. The feature has been merged to the latest master branch. Please check
PR: #329

@emqplus emqplus closed this as completed Oct 9, 2015
@berrywira
Copy link

Thanks +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants