Skip to content

RESERVATION_TIMEOUT_MS

const RESERVATION_TIMEOUT_MS: 31000 = 31_000

Defined in: variant.ts:52

How long a follower waits for the leader’s stream before giving up and requesting unpinned.

This must cover the SERVER’S stream budget, not a hopeful median: the edge caps a stream at 30 seconds (context.WithTimeout in mosaic-edge-serve/internal/handler/stream.go), and the variant id arrives in the terminal done event — so a slow generation can legally take the whole budget before any follower learns the draw. An earlier 3s value expired inside that window, sent followers unpinned mid-generation, and painted the mixed page pinning exists to prevent. Waiting is cheap: a follower holds like any client mount — canvas reserved, its ordinary hold budget spanning the wait — and if that budget runs out first its fallback types in, with any later copy landing as the single permitted rewrite (useIsland’s mount hold). 30s server budget + 1s margin for transport.