Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Streams Poll API #19572

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

Draft
bukka wants to merge 53 commits into php:master
base: master
Choose a base branch
Loading
from bukka:poll_api
Draft

Streams Poll API #19572

bukka wants to merge 53 commits into php:master from bukka:poll_api

Conversation

Copy link
Member

@bukka bukka commented Aug 24, 2025

This introduces a new API for polling that supports various backends:

  • epoll for Linux
  • kqueue for MacOS and BSD variants
  • IOCP for Windows
  • Event ports for Solaris and Illumos
  • poll for the rest

The API tries to reflect primarily epoll and the rest is done in a way so it is compatible. There will be RFC for the exposed API of course.

ericnorris reacted with hooray emoji Gemorroj, bashkarev, arnaud-lb, frederikbosch, adsr, and ericnorris reacted with rocket emoji
Copy link
Member Author

bukka commented Aug 24, 2025

Currently just kqueue and poll on MacOS are properly tested. The epoll should be easy to get tested but will need to then properly look to iocp and event ports. For event ports I will need to first set OmniOS (Illumos) up.

Copy link
Member Author

bukka commented Aug 24, 2025

So epoll looks good and all tests passing there.

Tha API also builds on Windows but unsuprisingly the iocp backend does not really work well so this is someting that I will be looking to.

And then event ports will likely need some work as well which I will look then too.

bukka added 20 commits September 19, 2025 20:25
bukka added 28 commits September 19, 2025 20:25
It needs to track complete one shots and remove same fd filters
This is to handle HUP difference in kqueue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@kocsismate kocsismate Awaiting requested review from kocsismate kocsismate will be requested when the pull request is marked ready for review kocsismate is a code owner

@DanielEScherzer DanielEScherzer Awaiting requested review from DanielEScherzer DanielEScherzer will be requested when the pull request is marked ready for review DanielEScherzer is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /