moquette-io / moquette

Java MQTT lightweight broker
http://moquette-io.github.io/moquette/
Apache License 2.0
2.27k stars 814 forks source link

Feature proposal: set a session expiry interval by configuration #732

Open andsel opened 1 year ago

andsel commented 1 year ago

In moquette.conf provide a new setting which could contain the maxium expiry interval for not clean sessions, the sessions stored also after the session disconnects. In MQTT 3 this is not customizable and actually moquette could consume space if clients connect with not clean and never reconnects, wasting space forever.