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

Clearing read/write readiness for streams #2182

Closed
polachok opened this issue Jan 27, 2020 · 1 comment
Closed

Clearing read/write readiness for streams #2182

polachok opened this issue Jan 27, 2020 · 1 comment
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-net Module: tokio/net

Comments

@polachok
Copy link
Contributor

Version

0.1.x, 0.2.x

Platform

Linux

Description

I'd like to use sendmsg(2), recvmsg(2) API on a socket. I can do that by using .as_raw_fd() and operating on raw file descriptor, but AFAIU after receiving EAGAIN (ErrorKind::WouldBlock) I have to call clear_read_ready()/clear_write_ready() which are not available on streams, only on PollEvented itself. mem::transmute into PollEvented works, but doesn't sound like a good idea.

@polachok polachok changed the title Clearing read/write interest for streams Clearing read/write readiness for streams Jan 27, 2020
@Darksonn Darksonn added A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-net Module: tokio/net labels Jul 25, 2020
@Darksonn
Copy link
Contributor

Closing for now. We can reevaluate after #1190 is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-net Module: tokio/net
Projects
None yet
Development

No branches or pull requests

2 participants