• src/sbbs3/mqtt_broker.cpp mqtt_topic.cpp mqtt_topic.h

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon May 11 10:45:24 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/35fa5b0d4150078a76e4ab7d
    Modified Files:
    src/sbbs3/mqtt_broker.cpp mqtt_topic.cpp mqtt_topic.h
    Log Message:
    mqtt_broker: periodic cleanup of expired retained messages

    Walk the topic tree once per minute and remove retained messages whose MESSAGE_EXPIRY property has elapsed. Previously, expired retained
    messages were only skipped on delivery to new subscribers but never
    actually removed from the tree.

    Nothing currently sets MESSAGE_EXPIRY, but this prevents unbounded
    accumulation if/when publishers start using it.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)