From 8efa0d43a2755d19472686f0a8e7783d0a792fe9 Mon Sep 17 00:00:00 2001 From: zirain Date: Thu, 29 Feb 2024 06:25:02 +0800 Subject: [PATCH] docs: Timeouts in CTP (#2710) * docs: Timeouts in CTP Signed-off-by: zirain * Update site/content/en/latest/user/client-traffic-policy.md Co-authored-by: Arko Dasgupta Signed-off-by: zirain * Update site/content/en/latest/user/client-traffic-policy.md Co-authored-by: Arko Dasgupta Signed-off-by: zirain * update Signed-off-by: zirain --------- Signed-off-by: zirain Co-authored-by: Arko Dasgupta --- .../en/latest/user/client-traffic-policy.md | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/site/content/en/latest/user/client-traffic-policy.md b/site/content/en/latest/user/client-traffic-policy.md index b155eaf4869..7b7e7938dd2 100644 --- a/site/content/en/latest/user/client-traffic-policy.md +++ b/site/content/en/latest/user/client-traffic-policy.md @@ -410,5 +410,59 @@ Handling connection for 8888 } ``` +### Enable HTTP Request Received Timeout + +This feature allows you to limit the take taken by the Envoy Proxy fleet to receive the entire request from the client, which is useful in preventing certain clients from consuming too much memory in Envoy +This example configures the HTTP request timeout for the client, please check out the details [here](https://www.envoyproxy.io/docs/envoy/latest/faq/configuration/timeouts#stream-timeouts). + +```shell +cat < GET /get HTTP/1.1 +> Host: www.example.com +> User-Agent: curl/8.4.0 +> Accept: */* +> Content-Length: 10000 +> +< HTTP/1.1 408 Request Timeout +< content-length: 15 +< content-type: text/plain +< date: Tue, 27 Feb 2024 07:38:27 GMT +< connection: close +< +* Closing connection +request timeout +``` + [ClientTrafficPolicy]: ../../api/extension_types#clienttrafficpolicy [BackendTrafficPolicy]: ../../api/extension_types#backendtrafficpolicy