Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
epoll: allow controlling write event notifications for bidirectional I/O
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.
- Loading branch information