Adjust the streamable-http initialization connection waiting timeout

This commit is contained in:
Liujian committed 2026-02-25 11:24:23 +08:00
1 parent 09b6811391
commit 3e1d986c1c
1 file changed
+1 -1
+1 -1
View File
@@ -397,7 +397,7 @@ class McpController:
# Ensure transport is connected before delegating (avoid race on first request)
try:
await self._wait_transport_ready(transport, timeout_seconds=2.0)
await self._wait_transport_ready(transport, timeout_seconds=10.0)
except TimeoutError:
logger.error("Transport not ready within timeout; refusing request")
response_body = b"Service Unavailable: transport not ready"