Merge pull request #140 from xpack-ai/feature/1.4-liujian

Adjust the streamable-http initialization connection waiting timeout
This commit is contained in:
Dot.L authored and GitHub committed 2026-02-25 11:24:50 +08:00
commit 5fa1cd741e
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"