]> git.aero2k.de Git - urlbot-v3.git/commit
Add XEP-0410 MUC self-ping to auto-rejoin after silent eviction master
authorThorsten <mail@aero2k.de>
Tue, 14 Jul 2026 19:50:28 +0000 (21:50 +0200)
committerThorsten <mail@aero2k.de>
Tue, 14 Jul 2026 19:50:28 +0000 (21:50 +0200)
commit84f6d5d604a99d6a72529d45398a27f43bed4425
tree3809d2057dbc9baaa57d5701758e9f9c113832fe
parent4e0d9fe4657e5d5e9513c7e958a213957000fc85
Add XEP-0410 MUC self-ping to auto-rejoin after silent eviction

A c2s reconnect re-fires session_start and rejoins the rooms, but a
silent MUC eviction (e.g. an s2s flap when the account server restarts)
never touches the c2s stream: the bot stays online and JID-pingable yet
quietly drops out of the room with no way to notice.

Periodically ping our own occupant JID and rejoin on not-acceptable /
item-not-found; treat every other error (and timeouts) as inconclusive
so a flaky s2s link can't cause a rejoin storm.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
src/distbot/bot/bot.py