Skip to content

String.runCommand should not wait for process to finish in case of timeout. #3284

@drganjoo

Description

@drganjoo

The String.runCommand function currently utilizes Process.waitFor(), which, according to the Java documentation, returns false when a timeout occurs. However, the existing implementation erroneously attempts to read from the error and input streams immediately after a timeout, leading to an unintended wait state. This behavior causes the code to exit due to the timeout but then immediately enters another waiting period for the process to finish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientpapercuttiny bugs that make the SDK harder to useserverRust server SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions