Skip to content

Commit bd4fbc7

Browse files
committed
Clarify duration string
1 parent 5d8d13c commit bd4fbc7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/web/docs/src/content/router/configuration/traffic_shaping.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ requests.
3535
- **Type:** `string`
3636
- **Default:** `50s`
3737

38-
Controls the timeout (in seconds) for idle keep-alive connections in the router's connection pool.
39-
Connections that are unused for this duration will be closed.
38+
Controls the timeout in duration string format (e.g. `1m` for 1 minute, `30s` for 30 seconds) for
39+
idle keep-alive connections in the router's connection pool. Connections that are unused for this
40+
duration will be closed.
4041

4142
## Example
4243

packages/web/docs/src/content/router/guides/performance-tuning.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ connection pool before being closed.
5959

6060
- **Default Value:** `50s`
6161

62+
It takes a duration string (like `30s` for 30 seconds, or `1m` for 1 minute). This setting affects
63+
how aggressively the router reuses existing connections versus closing them to free up resources.
64+
6265
### The Connection Reuse Trade-off
6366

6467
**Too short = latency overhead:**

0 commit comments

Comments
 (0)