Skip to content

Commit 452b15e

Browse files
committed
docs: consolidate timeout description per review
1 parent 252917f commit 452b15e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/mcp/shared/_httpx_utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ def create_mcp_http_client(
2929
3030
This function provides common defaults used throughout the MCP codebase:
3131
- follow_redirects=True (always enabled)
32-
- Default timeout of 30 seconds for connect/write/pool and 300 seconds for read (to
33-
accommodate long-lived SSE streams) if not specified
32+
- Default ``timeout`` tuned for long-lived SSE streams (see ``timeout`` below).
3433
3534
Args:
3635
headers: Optional headers to include with all requests.
37-
timeout: Request timeout as httpx.Timeout object.
38-
Defaults to 30 seconds for connect/write/pool and 300 seconds for read if
39-
not specified.
36+
timeout: Request timeout as httpx.Timeout object. Defaults to 30 seconds for
37+
connect/write/pool and 300 seconds for read (to accommodate long-lived
38+
SSE streams) if not specified.
4039
auth: Optional authentication handler.
4140
4241
Returns:

0 commit comments

Comments
 (0)