forked from tokio-rs/mio
-
Notifications
You must be signed in to change notification settings - Fork 0
merge from master #1
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
Open
zhangf911
wants to merge
1,427
commits into
zhangf911:master
Choose a base branch
from
tokio-rs:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Thomas de Zeeuw <[email protected]>
We do this by simply creating a fd-managing type, e.g. UnixDatagram, from the fd once it's created. Also first tries to parse the path as that can fail without doing a system call.
Now all the fd creating code follows the following pattern. let raw_fd = create_fd(); let managed_fd = wrap(raw_fd); // Additional system calls return managed_fd
Do it in new_socket so that the higher levels don't have to worry about it.
Don't agree with the `&path` -> `path`, but it's fine.
12.3 will soon be EoL
Signed-off-by: Alex <[email protected]>
Round up submillisecond wait times to the next millisecond on platforms where submillisecond sleep times aren't supported. This makes the behavior actually match the documentation. See also #420, where this was implemented for the first time.
Our MSRV too low to support this.
Runs the tests with a sanitizer enabled.
The toolchain is now installed `dtolnay/rust-toolchain`.
To trigger Event::is_priority on Linux and Android. In the future we might want to include EV_OOBAND for kqueue, but that seems to be Apple only (FreeBSD and OpenBSD don't implement it at least). Co-authored-by: Lars Pöschel <[email protected]>
Follow up to 98915ad.
Co-authored-by: Thomas de Zeeuw <[email protected]>
Running clippy with the enabled "net" feature reported several needless_lifetime warnings. This commit fixes them by switching to anonymous lifetimes. Versions: cargo 1.89.0 (c24e10642 2025-06-23) clippy 0.1.89 (29483883ee 2025-08-04) Command: cargo clippy --features net
reregister is used by sourcefd, which is always available under os-ext, so selectors should always provide reregister when os-ext is enabled even if cfg(unix) fails
Define the `listen` backlog parameters as in the standard library. On one hand, this helps avoid hardcoded or unsynchronized values. On the other hand, it allows better control of default values depending on the target.
Signed-off-by: pxwanglu <[email protected]>
* Update MSRV to 1.71 * Update dependencies
Standard library doesn't build anymore: rust-lang/rust#147437.
Currently runs into the following error. > mixing `-Zsanitizer` will cause an ABI mismatch in crate `mio` Tracked in rust-lang/rust#147394 and rust-lang/rust#146465.
When we've previously failed to read, we may be in a failed state. Inspired by how `schedule_read` handles this case, we simply reset the state to `Err` and notify that we are able to deliver the error.
Signed-off-by: spuradage <[email protected]>
Co-authored-by: Thomas de Zeeuw <[email protected]>
The Rust std lib currently fails to build rust-lang/rust#147776.
Signed-off-by: tinyfoolish <[email protected]>
Now that the standard library builds again.
The relevant issue: github.com/rust-lang/rust/issues/146465 has been resolved so this should work again.
Another job already used it, this one didn't.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.