oscerd opened a new pull request, #22636: URL: https://github.com/apache/camel/pull/22636
## Backport of #21694 Cherry-pick of #21694 onto `camel-4.18.x`. **Original PR:** #21694 - CAMEL-23124 - camel-docling: fix CLI mode ProcessBuilder deadlock with concurrent stream reading **Original author:** @oscerd **Target branch:** `camel-4.18.x` ### Original description Stdout and stderr were read sequentially — first all of stdout, then stderr. If the process wrote enough to stderr to fill the OS pipe buffer (~64KB), it would block writing to stderr while Java blocked reading stdout, causing a deadlock. Read stderr in a separate daemon thread so both streams drain concurrently. The stderr thread is joined with a bounded timeout after the process completes. _Claude Code on behalf of Andrea Cosentino_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
