# Timeout

This policy enables Kuma to set timeouts on the outbound connections depending on the protocol.

# Usage

Specify the proxy to configure with the sources selector, and the outbound connections from the proxy with the destinations selector.

The policy lets you configure timeouts for HTTP, GRPC, and TCP protocols.

# Example

    # Matching

    Timeout is an Outbound Connection Policy. The only supported value for destinations.match is kuma.io/service.

    # Builtin Gateway support

    Timeouts are connection policies and are supported by configuring the timeout parameters on the target Envoy cluster. Request timeouts are configured on the Envoy routes and may select a different Timeout policy when a route backend forwards to more than one distinct service.

    Mesh configures an idle timeout on the HTTPConnectionManager, but doesn’t consistently use the Timeout policy values for this, so the semantica are ambiguous. There’s no policy that configures the idle timeout for downstream connections to the Gateway.

    Last Updated: 4/6/2022, 9:24:27 AM