Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/shared/config/server.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### `server`

```yaml title="server"
server:
http:
header_read_timeout: 30s
```
11 changes: 11 additions & 0 deletions docs/source/routing/configuration/yaml.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
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';
Expand Down Expand Up @@ -309,6 +310,16 @@

---

<Server />

#### Header Read Timeout

Check warning on line 315 in docs/source/routing/configuration/yaml.mdx

View check run for this annotation

Apollo Librarian / AI Style Review

docs/source/routing/configuration/yaml.mdx#L315

Use sentence casing for headings. ```suggestion #### 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.

Check warning on line 317 in docs/source/routing/configuration/yaml.mdx

View check run for this annotation

Apollo Librarian / AI Style Review

docs/source/routing/configuration/yaml.mdx#L317

Use present tense ("waits" instead of "will wait") and active voice. Use lowercase "router" to refer to the instance. ```suggestion The header read timeout is the duration the router waits to receive complete request headers from a client. This applies when the connection is idle and when a request starts but the client hasn't finished sending headers. ```

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.

Check warning on line 319 in docs/source/routing/configuration/yaml.mdx

View check run for this annotation

Apollo Librarian / AI Style Review

docs/source/routing/configuration/yaml.mdx#L319

Use active voice ("Configure..." instead of "can be configured"). Use words for numbers zero through ten ("ten seconds"). ```suggestion The default header read timeout is ten seconds. Configure the timeout with the `server.http.header_read_timeout` option. ```

---

<Subscription />

Learn more in [Subscriptions](/graphos/routing/operations/subscriptions).
Expand Down