Skip to content

Support full HTTP request timeouts #6

Open
0 of 2 issues completed
Open

Description

@elielvipata

Feature Overview

In NGINX Gateway Fabric, we're looking to support Gateway API HTTPRoute Timeouts.

The API defines two types of timeouts:

  • timeouts.request is the timeout for the Gateway API implementation to send a response to a client HTTP request. This timeout is intended to cover as close to the whole request-response transaction as possible although an implementation MAY choose to start the timeout after the entire request stream has been received instead of immediately after the transaction is initiated by the client.
  • timeouts.backendRequest is a timeout for a single request from the gateway to a backend. Typically used in conjunction with retry configuration, if supported by an implementation. This covers the time from when the request first starts being sent from the gateway to when the full response has been received from the backend.

backend = upstream
gateway/implementation = NGINX

For even more details on how these timeouts are expected to behave, see the Gateway API reference.

The idea is that NGINX Gateway Fabric would take the values specified by a user in these two API fields and convert them to an NGINX configuration that satisfies the requirements set by the API specification.

Alternatives Considered

We initially looked into the existing timeouts provided by NGINX (proxy_read_timeout, proxy_connect_timeout, and proxy_send_timeout), but after further understanding how these actually work, they don't seem to fit the needs of the Gateway API specification. These work at the packet/connection level and don't consider the entire lifecycle of an HTTP request/response.

Additional Context

API specification: https://gateway-api.sigs.k8s.io/reference/spec/#httproutetimeouts
API design/proposal: https://gateway-api.sigs.k8s.io/geps/gep-1742/


Copied from issue 1262 of the upstream nginx repository, as test data for trib sync.

Activity

  1. github-actions commented on Nov 22, 2026

    @github-actions

    👋 Thanks for opening this issue and contributing to the NGINX project!
    A maintainer will review it and follow up when possible. We appreciate your support.

  2. elielvipata commented on Nov 23, 2026

    @elielvipata
    Author

    tributary goalpost github/timeouts: in progress

    Still needed to commit:

    • a planner's sign-off
    • 1 more of the other contributors (0 of 1 needed)
    Task Agent Issue
    gh7 a1 #7
    gh8 a1 #8

    Written by trib sync github and edited in place. Approvals are given in tributary, not here.

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