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

Fix the interaction between backpressure and fairness / yielding #93

Merged
merged 1 commit into from Apr 13, 2021

Conversation

anmonteiro
Copy link
Owner

In the case where a request handler yields too much to other streams,
there was a bug where http/af's request body implementation didn't have
a chance to surface buffered bytes to the application, and instead
buffered them forever.

The fix is to make sure that we flush the request body before trying to
compute the next read operation.

In the case where a request handler yields too much to other streams,
there was a bug where http/af's request body implementation didn't have
a chance to surface buffered bytes to the application, and instead
buffered them forever.

The fix is to make sure that we flush the request body before trying to
compute the next read operation.
@anmonteiro anmonteiro merged commit ee3e790 into fork Apr 13, 2021
@anmonteiro anmonteiro deleted the anmonteiro/backpressure-fix branch April 13, 2021 05:37
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.

None yet

1 participant