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

Support multishot reads/writes #119

Open
sergiu128 opened this issue Apr 14, 2024 · 0 comments
Open

Support multishot reads/writes #119

sergiu128 opened this issue Apr 14, 2024 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@sergiu128
Copy link
Collaborator

sergiu128 commented Apr 14, 2024

After each read/write, the poller de-registers the read/write notification event from its watchlist (explicitly for epoll, implicitly for kqueue as there we use oneshot registrations). That means a subsequent read/write needs to be registered again. Some applications want to read/write in a loop (i.e. read in the OnRead callback, analog for writes). In that case, we can save some time by not de-registering the read/write on a poll. The caller will then have to explicitly cancel the read/write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant