Skip to content

feat: retry reads for EAGAIN#408

Open
FauxFaux wants to merge 1 commit intowg:masterfrom
FauxFaux:feat/retry-eagain
Open

feat: retry reads for EAGAIN#408
FauxFaux wants to merge 1 commit intowg:masterfrom
FauxFaux:feat/retry-eagain

Conversation

@FauxFaux
Copy link
Copy Markdown

@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