diff --git a/docs/shared/config/server.mdx b/docs/shared/config/server.mdx new file mode 100644 index 0000000000..67022c04c5 --- /dev/null +++ b/docs/shared/config/server.mdx @@ -0,0 +1,7 @@ +### `server` + +```yaml title="server" +server: + http: + header_read_timeout: 30s +``` diff --git a/docs/source/routing/configuration/yaml.mdx b/docs/source/routing/configuration/yaml.mdx index 76e4e46c5e..ae3429530a 100644 --- a/docs/source/routing/configuration/yaml.mdx +++ b/docs/source/routing/configuration/yaml.mdx @@ -33,6 +33,7 @@ import ResponseCache from '../../../shared/config/response_cache.mdx'; import PreviewFileUploads from '../../../shared/config/preview_file_uploads.mdx'; import Rhai from '../../../shared/config/rhai.mdx'; import Sandbox from '../../../shared/config/sandbox.mdx'; +import Server from '../../../shared/config/server.mdx'; import Subscription from '../../../shared/config/subscription.mdx'; import Supergraph from '../../../shared/config/supergraph.mdx'; import Telemetry from '../../../shared/config/telemetry.mdx'; @@ -309,6 +310,16 @@ Learn more in [Apollo Sandbox](/graphos/platform/sandbox). --- + + +#### Header Read Timeout + +The header read timeout is the amount of time the Router will wait to receive the complete request headers from a client before timing out. It applies both when the connection is fully idle and when a request has been started but sending the headers has not been completed. + +By default, the header read timeout is set to 10 seconds. A longer timeout can be configured using the `server.http.header_read_timeout` configuration option. + +--- + Learn more in [Subscriptions](/graphos/routing/operations/subscriptions).