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

Set blocking on stdout #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Set blocking on stdout #1

wants to merge 1 commit into from

Conversation

heschong
Copy link

@heschong heschong commented Aug 2, 2018

Set blocking on stdout so it will flush all data when writing to a pipe. Currently, large JSON results piped to x2j can result in an output buffer larger than 64k, and the remainder does not get flushed when the process exits. This causes a problem where piping the output of this command for large files currently results in truncated output. See also nodejs/node#6297 for notes on the process exit and stdout buffer flushing.

Set blocking on stdout so it will flush all data when writing to a pipe
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.

None yet

1 participant