Expand description
Fallback policy for optional broker-to-backend connection handoff.
This module does not transfer handles. It keeps the decision surface for Phase 6 small: decide whether a handoff attempt is allowed, record failed attempts, and always translate handoff failures into a silent reconnect fallback for the client.
Structs§
- Handoff
Attempt Inputs - Inputs that decide whether a specific client request may attempt handoff.
- Handoff
Fallback Decision - Client-visible behavior when broker handoff is skipped or fails.
- Handoff
Fallback Policy - Runtime bounds for optional handoff fallback behavior.
- Handoff
Fallback State - Per-backend state for suppressing repeatedly failing handoff attempts.
Enums§
- Handoff
Attempt Decision - Decision produced before or after an optional handoff attempt.
- Handoff
Attempt Failure - Failure observed after a platform-specific handoff attempt was started.
- Handoff
Fallback Reason - Broker-side reason for falling back from handoff to client reconnect.
Constants§
- DEFAULT_
HANDOFF_ FAILED_ ATTEMPTS_ PER_ WINDOW - Default number of failed handoff attempts allowed per backend/window.
- DEFAULT_
HANDOFF_ FAILED_ ATTEMPT_ WINDOW - Default window used to rate-limit failed handoff attempts.