Closed mathbou closed 5 months ago
I'm acknowledging this PR so you know I'm not ignoring it, but JFYI: I'm pretty backlogged at the moment, so I can't guarantee a timely review here 🙂
Took a look, and I have no major objection to removing the explicit buffer sizes. That being said, it'd be ideal to have a better understanding of why this would deadlock on Windows: we set bufsize=0
so the pipe should be unbuffered regardless of OS, meaning that neither read()
should ever block.
While doing tests with pip-audit, I noticed several times the process stalling while installing the isolated env.
By removing the stdout/stderr read size, it seems to run properly, however it's quite tricky to reproduce.