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

feat: implement windows driver #185

Merged
merged 2 commits into from
Jul 4, 2023
Merged

feat: implement windows driver #185

merged 2 commits into from
Jul 4, 2023

Conversation

JinWeiTan
Copy link
Contributor

Relevant: #166
This PR implements a legacy driver for windows built on IOCP and AFD.
This reuses a lot of the mio source code, which itself uses unstable windows apis.
The approach is used by wepoll, libuv, mio/tokio, smol-rs and is explained here.

Note:
This method does not support some older versions of Windows and Wine.
libuv seems to fallback on using select whereas mio just gave up support for that.
Relevant issue: tokio-rs/mio#1444

@ihciah
Copy link
Member

ihciah commented Jul 4, 2023

Thank you so much for helping support windows! We can add some tests if windows is fully supported.

@ihciah ihciah merged commit 82b0007 into bytedance:master Jul 4, 2023
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.

2 participants