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

refactor: use pg WaitEvent API instead of epoll #156

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

steve-chavez
Copy link
Member

This allows compiling on other platforms such as MacOS. (problem previously mentioned on #139 (comment))

It mostly works at this stage but with some limitations:

  • Doing 10K requests fail with "Bad file descriptor"
    • I believe this is because we're not deleting file descriptors since the WaitEvent API doesn't provide EPOLL_CTL_DEL. It only provides EPOLL_CTL_ADD/MOD
  • timerfd is still Linux specific and pg provides no abstraction over it.

This is so the translation to pg WaitEvent API is easier.
This allows compiling on other platforms such as MacOS.

It mostly works at this stage but with some limitations:

- [ ] Doing 10K requests fail with "Bad file descriptor"
  + I believe this is because we're not deleting file descriptors
    since the WaitEvent API doesn't provide EPOLL_CTL_DEL.
    It only provides EPOLL_CTL_ADD/MOD
- [ ] timerfd is still Linux specific and pg provides no abstraction
  over it.
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