Skip to content

Set blocking on stdout#1

Open
heschong wants to merge 1 commit into
lmammino:masterfrom
heschong:blockingstdout
Open

Set blocking on stdout#1
heschong wants to merge 1 commit into
lmammino:masterfrom
heschong:blockingstdout

Conversation

@heschong

@heschong heschong commented Aug 2, 2018

Copy link
Copy Markdown

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.

1 participant