Skip to content

Commit 08b9874

Browse files
committed
feat(client/sse): allow to set the timeout of POST /messages
1 parent 9ae4df8 commit 08b9874

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mcp/client/sse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ async def post_writer(endpoint_url: str):
120120
mode="json",
121121
exclude_none=True,
122122
),
123+
timeout=httpx.Timeout(timeout, read=sse_read_timeout),
123124
)
124125
response.raise_for_status()
125126
logger.debug(

0 commit comments

Comments
 (0)