Remove a peer's live routes when its session goes down (closes #56) #88

Merged
clawbot merged 1 commits from issue-56-peer-down into next 2026-10-19 11:40:32 +02:00
1 Commits
Author SHA1 Message Date
clawbot 6badf988ca Remove a peer's live routes when its session goes down (closes #56)
check / check (push) Waiting to run
RIS sends no withdrawals for the routes of a peer whose BGP session goes
down, so those routes stayed in the live tables for good.

The streamer now hands STATE messages to the prefix handler and never drops
one for backpressure: one that finds the queue full is held, and queued in
feed order ahead of anything else for that handler once there is room. On a
down, the prefix handler drops the peer's updates still in its batch and
notes the peer; the next flush deletes all of the peer's live routes, IPv4
and IPv6, before writing the batch, so updates sent after the down are kept.
The live route tables' unique key now leads with peer_ip, so it also finds a
peer's routes.

Model: opus-5-5
2026-10-19 09:16:34 +00:00