Skip to content

Eagerly subscribe to a stream when using operator> to avoid a deadlock with Process.{stdout,stderr}#50

Draft
Goodwine wants to merge 3 commits intomainfrom
pipe-stuck-2-pow-16-plus-1
Draft

Eagerly subscribe to a stream when using operator> to avoid a deadlock with Process.{stdout,stderr}#50
Goodwine wants to merge 3 commits intomainfrom
pipe-stuck-2-pow-16-plus-1

Conversation

@Goodwine
Copy link
Contributor

@Goodwine Goodwine commented Jan 31, 2023

Fixes #51

The script goes into a deadlock when either its stdout or stderr are piped with the operator> to another stream and the script writes more than 2^16+1 bytes to the piped output.
@Goodwine Goodwine changed the title Test that operator> deadlock with large data Eagerly subscribe to a stream when using operator> to avoid a deadlock with Process.{stdout,stderr} Feb 7, 2023
@Goodwine Goodwine force-pushed the pipe-stuck-2-pow-16-plus-1 branch from 0a33d96 to b029535 Compare February 7, 2023 22:28
@Goodwine Goodwine marked this pull request as draft September 19, 2023 20:20
@Goodwine Goodwine removed the request for review from nex3 September 19, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deadlock when using operator> on a stream that emits more than 16KiB

1 participant