update timeoutes reference (#3031)

This commit is contained in:
Alex Fornuto 2022-02-09 16:26:08 -06:00 committed by GitHub
parent 0ece090c85
commit db7648d4eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View file

@ -411,11 +411,12 @@ services:
- Example: `TIMEOUT_READ=30s`
- Defaults: `TIMEOUT_READ=30s` `TIMEOUT_WRITE=0` `TIMEOUT_IDLE=5m`
Timeouts set the global server timeouts. Timeouts can also be set for individual [routes](#policy).
Timeouts set the global server timeouts. Timeouts can also be set for individual [routes](#routes).
![cloudflare blog on timeouts](https://blog.cloudflare.com/content/images/2016/06/Timeouts-001.png)
> For a deep dive on timeout values see [these](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/) [two](https://blog.cloudflare.com/exposing-go-on-the-internet/) excellent blog posts.
- `idle_timeout`: The idle timeout is the time at which a downstream or upstream connection will be terminated if there are no active streams.
- `write_timeout`: The max stream duration is the maximum time that a streams lifetime will span. An HTTP request/response exchange fully consumes a single stream.
Therefore, this value must be greater than read_timeout as it covers both request and response time.
- `read_timeout`: The amount of time for the entire request stream to be received from the client.
### GRPC Options