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

Allow disabling stdin buffering #1

Open
bwbaugh opened this issue Oct 15, 2015 · 0 comments
Open

Allow disabling stdin buffering #1

bwbaugh opened this issue Oct 15, 2015 · 0 comments

Comments

@bwbaugh
Copy link
Owner

bwbaugh commented Oct 15, 2015

Use something like sys.stdin.readline() instead of for line in sys.stdin: since the latter has internal buffering. For low QPS streams, this can cause some records to be delayed.

More context: http://stackoverflow.com/a/8419160/1988505

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

No branches or pull requests

1 participant