Closed ghost closed 1 month ago
does this mean that tcp servers using io_uring now need to handle both direct and global file descriptors?
why are bind and listen not async yet
Because they don't need to be async as they don't wait on any IO / etc. If the question why they're not supported by io_uring, then there wasn't much need before / because nobody implemented it.
can they access direct descriptor?
Direct descriptiors is an io_uring feature, so no
does this mean that tcp servers using io_uring now need to handle both direct and global file descriptors?
as a work around you can register a socket file after doing bind/listen, e.g. see io_uring_register_files()
https://github.com/axboe/liburing/issues/234#issuecomment-1241888695 why are bind and listen not async yet, can they access direct descriptor?