- policyRef:
name: idle-timeout-flex
config:
timeout: number // REQUIRED
Upstream Idle Timeout Policy
Policy Name |
Stream Idle Timeout |
Summary |
Sets the maximum idle duration for a stream between the Omni Gateway and an upstream service |
Category |
Quality of Service |
First Omni Gateway version available |
v1.9.0 |
Returned Status Codes |
504 - Upstream request timeout |
Summary
The Upstream Idle Timeout policy lets you set a maximum idle duration between requests for a stream between Omni Gateway and the upstream service. By applying the policy, you prevent idle connections from consuming resources while simultaneously allowing persistent connections to remain open. The timeout starts at the last request.
By default, all Omni Gateway API instances have an upstream idle timeout of 60 seconds. Apply the policy to override the default timeout.
Configuring Policy Parameters
Omni Gateway Local Mode
When you apply the policy via declarative configuration files, Refer to the following policy definition and table of parameters:
| Parameter | Required or Optional | Default Value | Description |
|---|---|---|---|
|
Required |
60 |
Time in seconds before Omni Gateway closes the connection. |



