Skip to content

ISSUE-747: Fix pipe deadlock when command stdout exceeds OS buffer - #750

Open
i-redbyte wants to merge 1 commit into
KasperskyLab:masterfrom
i-redbyte:ISSUE-747-fix-cmd-command-performer-pipe-deadlock
Open

i-redbyte wants to merge 1 commit into
KasperskyLab:masterfrom
i-redbyte:ISSUE-747-fix-cmd-command-performer-pipe-deadlock

Conversation

@i-redbyte

Copy link
Copy Markdown

Fixes #747: AdbServer commands with stdout larger than the OS pipe buffer (~64 KB) timed out because the child process blocked on write while the parent only read streams after waitFor().

CmdCommandPerformer now drains stdout and stderr asynchronously while waiting for the process to finish, avoiding the classic Runtime.exec() pipe deadlock.

Added a unit test with large output (seq 1 30000)

@CLAassistant

CLAassistant commented Sep 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants