Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix copying stale data during refill #10

Merged
merged 1 commit into from
Apr 30, 2019

Conversation

Herschel
Copy link
Contributor

The refill code assumed the buffer would be filled completely on each read, causing stale data to be placed in the buffer near the EOF. Now only copies the amount of data that was actually read.

The refill code assumed the buffer would be filled completely on each
read, causing stale data to be placed in the buffer near the EOF.
@germangb
Copy link
Owner

germangb commented Apr 30, 2019

Thanks! I'll reference this PR on a test in the future.

Will publish a new patch later.

@germangb germangb merged commit 7933593 into germangb:master Apr 30, 2019
@germangb germangb mentioned this pull request May 8, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants