Skip to content

Room server: don't let a client's sync-since get ahead of our clock - #3922

Open
BadPirate wants to merge 1 commit into
meshcore-dev:devfrom
kaperkunde:pr/room-server-clock-floor
Open

BadPirate wants to merge 1 commit into
meshcore-dev:devfrom
kaperkunde:pr/room-server-clock-floor

Conversation

@BadPirate

@BadPirate BadPirate commented Nov 23, 2026 •

Copy link
Copy Markdown

A room server without a battery-backed RTC restarts with its clock at the 15 May 2024 default. Clients that already synced send back a sync-since from the old clock on login and in keep-alives, and the room stores it as is. Any post stamped by the reset clock is then older than that sync-since and is never pushed, until someone runs clock sync. This clamps the client-supplied value to the room's current time in those two places, so new posts are delivered again after a reboot even before the clock is corrected. It does not fix the clock reset itself (#3059), only the missed-post symptom described there. Built with pio run -e Heltec_v3_room_server; not tested on hardware or with a real client.

Related to #3059

🤖 Generated with Claude Code

@BadPirate
BadPirate marked this pull request as ready for review November 23, 2026 11:39

This branch has not been deployed

No deployments
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