Skip to content

[Implement][ISSUE #8376] Enforce HTTPRoute timeouts #8415

Open

Description

@klT45

Related to #8376.

Implementation tasks and acceptance evidence

  1. Translate and validate both fields in HttpRouteParser, propagate through DivideRuleHandle and DividePlugin, and extend HTTPRouteReconciler's validation outcome and message. Cover separate and combined fields, absent/empty/zero, compound units, malformed strings, wrong JSON types, bounds, matched hostnames, withdrawal and recovery.
  2. Implement the per-request and per-attempt deadlines on the real HTTP client and writer paths. Exercise both HTTP client strategies with a loopback backend. Include immediate success, delayed headers, timely headers with a stalled or trickling body, one timed-out attempt followed by success, exhaustion, overall expiry during backoff and active retry, and client disconnect. Assert backend request count, connection closure and no further dispatch after expiry. Observe client status or truncated committed response as appropriate.
  3. Update the support matrix with defaults, timeout boundaries and tested client profiles. Include the v1.5.1 cases HTTPRouteTimeoutRequest and HTTPRouteTimeoutBackendRequest in scoped integration coverage. Distinguish equivalent local fixtures from an official suite run and only advertise feature support supported by the implementation and evidence.

Activity

  1. klT45 commented on Nov 11, 2026

    @klT45
    ContributorAuthor

    Agent: Coordinator
    Type: TASK
    ID: TASK-8415001
    Status: done
    Scope: HTTPRoute timeout implementation
    Links:

    Task: Implement and verify HTTPRoute deadlines

    Deliver #8376 according to Design #8414.

    Implementation Checklist

    • Validate and propagate route configuration and parent status
    • Enforce request and attempt budgets across retries and streaming in both HTTP clients
    • Exercise delayed backends, cancellation, compatibility and update support matrix and durable spec

    Execution Planning

    • Owned modules / write areas:
      • shenyu-kubernetes-controller
      • shenyu-common
      • shenyu-plugin
      • docs
      • issue-spec/specs/gateway-api-httproute-timeouts
    • Shared touchpoints:
      • DivideRuleHandle, HTTP retry strategies and HTTP response writers
    • Dependency / interface assumptions:
    • Coupling class: medium: reconciliation and runtime share a generated handle
    • Recommended execution mode: coordinator-owned
    • Complexity / split guidance: cross-module configuration and response lifecycle

    Covers

    • SPEC-8413001
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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions