emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.32k stars 685 forks source link

module: add listener_max_connection_lifetime_ms option #5583

Open dethi opened 4 months ago

dethi commented 4 months ago

Description

Add listener_max_connection_lifetime_ms, similar to how listener_idle_timeout_ms is implemented. This limit the maximum age of a downstream connections by adding max_connection_duration to the listener's common_http_protocol_options.

This option could already be set on the clusters (upstream connections), but setting it on the downstream connections could be useful in multiple scenarios:

Related Issues

Fix #2900

Testing

Checklist

dethi commented 4 months ago

Two questions: