nginx-gateway-fabric icon indicating copy to clipboard operation
nginx-gateway-fabric copied to clipboard

Implement cancellation of NGINX Plus API calls

Open pleshakov opened this issue 1 year ago • 1 comments
trafficstars

https://github.com/nginxinc/nginx-gateway-fabric/pull/1469 brought support for dynamic reconfiguration of NGINX Plus upstreams. However, when making NGINX Plus API call (HTTP requests), we don't control they cancelation of those operations.

We'd like to control cancelations for two reasons:

  • graceful termination. When NGF terminates, it needs to finish any in-progress API calls.
  • configuring a API call timeout -- control how much time NGF allows for a successful API call

Acceptance criteria:

  • Implement cancelation.
  • Implement a reasonable timeout.

Blocked by https://github.com/nginxinc/nginx-plus-go-client/issues/205

pleshakov avatar Jan 18 '24 15:01 pleshakov