nginx-gateway-fabric
nginx-gateway-fabric copied to clipboard
Implement cancellation of NGINX Plus API calls
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