Skip to content
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

Avoid stucking while reading stdout from pty #83

Closed
wants to merge 1 commit into from

Conversation

tomoemon
Copy link

NewScanner is unable to read lines that exceed 64*1024 bytes in length, resulting in an error. However, reflex ignores Scan errors, so when the command being executed produces a large output, reflex will block and the command itself will stop.

By using ReadLine, it is possible to divide the output into multiple reads even if it is large.

@flexoid
Copy link

flexoid commented Aug 27, 2021

Please merge it if possible 🙏

Just spent 3 hours trying to figure out why my service hangs on a completely unexpected point. But it actually didn't hang, it was just silence in stdout because of this bug.

@cespare cespare closed this in 13e5691 Aug 27, 2021
@cespare
Copy link
Owner

cespare commented Aug 27, 2021

I fixed this in a different way in 13e5691 and tagged v0.3.1.

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.

3 participants