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: properly check if connections can be recycled #77

Merged
merged 2 commits into from
Mar 6, 2021

Conversation

Fishrock123
Copy link
Member

Related to #75

@Fishrock123
Copy link
Member Author

Ok only wasm is failing here for unrelated reasons (see https://http-rs.zulipchat.com/#narrow/stream/261408-general/topic/wasm.20support/near/229125496). Going to merge and release.

@Fishrock123 Fishrock123 merged commit cab5441 into http-rs:main Mar 6, 2021
Checks `poll_read`'s status directly, so that we can ensure
a socket read actually  happens, and then immediately continue
if we get `Poll::Pending`.

Related to http-rs#75
This avoids unnecessarily registering with the waker when we aren't going to poll until Ready.

Thanks to Kestrer on discord.
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