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

Autoflush PrintWriter when consuming from stdin #167

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

dainiusjocas
Copy link
Owner

The Ruby percolator example was no longer working.

The problem that PrintWriter without auto-flush flushes only when either explicitly invoked or the buffer is full.

Such behaviour creates a problem for producers that operate in "line by line fashion" because one line of input doesn't fill the output buffer and as a result the consumer just hangs.

However, such behaviour might reduce the throughput. Let's release the fix, and implement the flag with this issue #166 .

@dainiusjocas dainiusjocas merged commit 83bbb4f into main Feb 18, 2022
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