-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix stalling in Pipeline command #632
Conversation
0a691ba
to
713edca
Compare
When a command (other than the first) in a pipeline wrote more than 64k to the stderr, and the output was consumed with the iter_lines function, the whole pipeline stalled. Fixed by reading the output of all commands where either stdout or stderr was set to PIPE.
somehow stderr includes an empty line when run on pypy
3c2f649
to
57a1dea
Compare
@henryiii do you plan to release new version soon? Stalling pipelines is something we've bumped in several times, this fix seems important. I don't know how new releases are made, but if there is anything I can help with, I am ready :) |
Yeah, I'm planning one pretty soon. I want to get a release out then drop Python 3.6. |
Hi @henryiii ! |
When a command (other than the first) in a pipeline wrote more than 64k to the stderr, and the output was consumed with the iter_lines function, the whole pipeline stalled. Fixed by reading the output of all commands where either stdout or stderr was set to PIPE.
This is the same issue as described in
#548
Same problem still exists if command is executed with run(), but that code calls proc.communicate to read stderr/stdout and I do not know how to fix that.