Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zhangf911
Copy link
Owner

No description provided.

poliorcetics and others added 30 commits October 22, 2022 19:29
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.
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]>
GarmashAlex and others added 30 commits June 27, 2025 16:14
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.
* Update MSRV to 1.71

* Update dependencies
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.
The Rust std lib currently fails to build
rust-lang/rust#147776.
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.