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

posix: Try non-blocking send/sendmsg before polling #48

Open
Cloudef opened this issue Jan 13, 2025 · 1 comment
Open

posix: Try non-blocking send/sendmsg before polling #48

Cloudef opened this issue Jan 13, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Cloudef
Copy link
Owner

Cloudef commented Jan 13, 2025

UDP sockets for example are always writable, thus polling them is a waste. io_uring also seems to try non-blocking send/sendmsg before setting up a internal poll by default. The flag IORING_RECVSEND_POLL_FIRST prevents the non-blocking send.

@Cloudef Cloudef added the enhancement New feature or request label Jan 13, 2025
@Cloudef
Copy link
Owner Author

Cloudef commented Jan 13, 2025

This also applies to recv/recvmsg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant