Skip to content

fix: add timeout to streaming subprocess.run() in base.py - #3967

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/streaming-subprocess-timeout
Open

fix: add timeout to streaming subprocess.run() in base.py#3967
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/streaming-subprocess-timeout

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

The streaming branch of dispatch_command() called subprocess.run() without a timeout, which could hang indefinitely if the child process stalls.

Fix

Apply the same timeout parameter (default 600s) as the non-streaming branch, with proper TimeoutExpired handling.

…mmand

The streaming branch of dispatch_command() called subprocess.run()
without a timeout, which could hang indefinitely if the child process
stalls. Now uses the same timeout parameter (default 600s) as the
non-streaming branch, with proper TimeoutExpired handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant