nginxinc / nginx-gateway-fabric

NGINX Gateway Fabric provides an implementation for the Gateway API using NGINX as the data plane.
Apache License 2.0
511 stars 96 forks source link

HTTP Timeouts #2164

Open mpstefan opened 5 months ago

mpstefan commented 5 months ago

Background:

NGINX provide the following directives for timeouts:

All of these timeouts are based on packet transfer to the upstream instead of the individual requests. As such, we will need to create an NJS module to support a "true" HTTP timeout that will time out individual requests based on the request itself instead of measuring when a packet was last received from the upstream for any request.

chrisakker commented 2 months ago

None of these timeouts are packet based. They are all TCP connections, or HTTP request/response timeouts, and LB selection timeouts. For further review, read the actual text of the Directives that you linked to. There is no need for NJS, Nginx core does this by default.