feat: improved MCP timeout (#23546)
This commit is contained in:
parent
c8c591d73c
commit
4b0480c8b3
13 changed files with 153 additions and 47 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import queue
|
||||
from datetime import timedelta
|
||||
from typing import Any, Protocol
|
||||
|
||||
|
|
@ -85,8 +86,8 @@ class ClientSession(
|
|||
):
|
||||
def __init__(
|
||||
self,
|
||||
read_stream,
|
||||
write_stream,
|
||||
read_stream: queue.Queue,
|
||||
write_stream: queue.Queue,
|
||||
read_timeout_seconds: timedelta | None = None,
|
||||
sampling_callback: SamplingFnT | None = None,
|
||||
list_roots_callback: ListRootsFnT | None = None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue