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

use mio to replace polling #280

Merged
merged 7 commits into from
Dec 5, 2024
Merged

use mio to replace polling #280

merged 7 commits into from
Dec 5, 2024

Conversation

keepsimple1
Copy link
Owner

@keepsimple1 keepsimple1 commented Dec 4, 2024

This is to resolve the issue raised by PR #279 (and early PR #172). We are facing a dilemma: polling 3.x is the latest release going forward but its Poller.add() is unsafe. polling 2.x has a safe Poller.add() but will eventually become un-maintained / less-maintained.

One of things I want to keep for this crate is "all safe code". And I found mio can also do sockets polling with a safe API and a stable 1.0 release. Hence this patch.

And, as mio 1.0 requires rustc 1.70, we bump our Rust version to 1.70.0.

@keepsimple1 keepsimple1 mentioned this pull request Dec 4, 2024
@keepsimple1 keepsimple1 merged commit fcd31f3 into main Dec 5, 2024
3 checks passed
@keepsimple1 keepsimple1 deleted the try-mio branch December 5, 2024 06:43
@keepsimple1 keepsimple1 changed the title Try to use mio to replace polling use mio to replace polling Dec 5, 2024
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