proxy: add idle timeout (#2319)

This commit is contained in:
wasaga 2021-07-02 10:29:53 -04:00 committed by GitHub
parent 2ceaae8e54
commit 134ca74ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 658 additions and 531 deletions

View file

@ -1334,6 +1334,19 @@ See Envoy [documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch
Policy timeout establishes the per-route timeout value. Cannot exceed global timeout values.
### Idle Timeout
- `yaml`/`json` setting: `idle_timeout`
- Type: [Go Duration](https://golang.org/pkg/time/#Duration.String) `string`
- Optional
- Default: `5m`
If you are proxying long-lived requests that employ streaming calls such as websockets or gRPC,
set this to either a maximum value there may be no data exchange over a connection (recommended),
or set it to unlimited (`0s`). If `idle_timeout` is specified, and `timeout` is not
explicitly set, then `timeout` would be unlimited (`0s`). You still may specify maximum lifetime
of the connection using `timeout` value (i.e. to 1 day).
### Set Request Headers
- Config File Key: `set_request_headers`
- Type: map of `strings` key value pairs

View file

@ -1469,6 +1469,19 @@ settings:
- Default: `30s`
doc: |
Policy timeout establishes the per-route timeout value. Cannot exceed global timeout values.
- name: "Idle Timeout"
keys: ["idle_timeout"]
attributes: |
- `yaml`/`json` setting: `idle_timeout`
- Type: [Go Duration](https://golang.org/pkg/time/#Duration.String) `string`
- Optional
- Default: `5m`
doc: |
If you are proxying long-lived requests that employ streaming calls such as websockets or gRPC,
set this to either a maximum value there may be no data exchange over a connection (recommended),
or set it to unlimited (`0s`). If `idle_timeout` is specified, and `timeout` is not
explicitly set, then `timeout` would be unlimited (`0s`). You still may specify maximum lifetime
of the connection using `timeout` value (i.e. to 1 day).
- name: "Set Request Headers"
keys: ["set_request_headers"]
attributes: |