Skip to content

Conversation

@fluffle
Copy link

@fluffle fluffle commented Sep 6, 2018

Hi!

I tried to use your code and it kept doing blocking reads. Here's a fix. I only gofmt'd the files I changed, and I kept the format changes in a separate commit to make reviewing this change easier.

Cheers,
--alex

This state machine guarantees that at most one Read will be issued to
the underlying reader for every internalDataReader Read call. Preserving
these semantics stops internalDataReader from blocking when the provided
read buffer is larger than the amount of data available to read from the
underlying reader.
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