Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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