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

feat: retry reads for EAGAIN #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FauxFaux
Copy link

@FauxFaux FauxFaux commented Dec 6, 2019

When we see a short read, retry it until we fill the buffer, or we see EWOULDBLOCK.

I see short reads locally, and I think they're affecting performance, but the difference is pretty slim.

I mainly wrote this because I was seeing epoll_wait hang for ages, and wanted to know that read would block. It does, most of the time.

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