You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#1933: Prevent closing real stdio when server exits
When using transport="stdio", the server was closing sys.stdin.buffer
and sys.stdout.buffer when exiting, causing subsequent stdio operations
to fail with ValueError: I/O operation on closed file.
This fix uses os.dup() to create duplicate file descriptors, so the
original stdin/stdout remain open when the wrapper streams are closed.
Fixes#1933
0 commit comments