Skip to content

Backend timeout options #82

Open
Open

Description

@aram356

Description

Expose configurable connect, first-byte and between-bytes timeouts for outbound backends. Fastly TLS and fixed timeout settings already sets Fastly defaults of 1s/15s/10s; Axum proxy construction fixes a single 30s timeout. Those defaults do not supply the requested portable configuration.

Steps to reproduce

  1. Inspect Fastly backend construction and AxumProxyClient::try_new.
  2. Look for public caller-supplied connect, first-byte and between-bytes settings in ProxyRequest.
  3. Compare current fixed settings across adapters.

Expected behavior

Applications can configure each requested timeout through a shared contract, with phase meanings and provider support documented.

Impact

Slow or unreliable origins cannot be given workload-specific connection/read budgets without adapter-specific changes.

Proposed fix

Add validated timeout settings to the chosen outbound contract, map supported phases into each adapter, and define explicit unsupported behavior. Coordinate with the deadline model in PR #275 rather than treating a whole-request timeout as equivalent to every phase timeout.

Done when

  • Connect, first-byte and between-bytes semantics and defaults are documented.
  • Supported adapters apply caller values; unsupported phases are explicit.
  • Focused delayed-origin or deterministic transport tests distinguish the phases without external services.

Related

Parent #79; story #80; adapter configuration #84, #85; contracts #87. PR #35 adds fixed Fastly defaults; PR #275 is related open work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions