Skip to main content

Module fallback

Module fallback 

Source
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§

HandoffAttemptInputs
Inputs that decide whether a specific client request may attempt handoff.
HandoffFallbackDecision
Client-visible behavior when broker handoff is skipped or fails.
HandoffFallbackPolicy
Runtime bounds for optional handoff fallback behavior.
HandoffFallbackState
Per-backend state for suppressing repeatedly failing handoff attempts.

Enums§

HandoffAttemptDecision
Decision produced before or after an optional handoff attempt.
HandoffAttemptFailure
Failure observed after a platform-specific handoff attempt was started.
HandoffFallbackReason
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.