axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.89k stars 407 forks source link

The role of IORING_ACCEPT_DONTWAIT #1286

Closed AomaYple closed 1 day ago

AomaYple commented 1 day ago

What does the wiki mean by “allowing applications to issue a non-retryable accept attempt”

axboe commented 1 day ago

By default, if there's nothing to accept, it'll arm poll and wait for a connection request. Setting DONTWAIT will instead return -EAGAIN and complete the request.

AomaYple commented 1 day ago

By default, if there's nothing to accept, it'll arm poll and wait for a connection request. Setting DONTWAIT will instead return -EAGAIN and complete the request.

Thank you!