Skip to content

Conversation

@clukawski
Copy link

No description provided.

Brendan McMillion and others added 30 commits June 9, 2020 15:08
Handle unexpected return values from epoll_wait.
For sockets that frequently switch between read/write but can be
readable at any time, add a `notify_writable` method to EventGuard which
re-arms the socket with either EPOLLOUT set or cleared.
When there is writable data in userspace but writing is blocked, the
guard can temporarily enable writable events then disable them when
user code has flushed its buffers, instead of having to manually manage
separate 'writer' sockets.
The removed asserts resulted in the error handling code being
unreachable.
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.

7 participants