
21 Jul
2025
21 Jul
'25
4:35 p.m.
On Mon, Jul 21, 2025 at 3:58 PM Mohammad Nejati [ashtum] <ashtumashtum@gmail.com> wrote:
This clearly violates your requirements. Even if we assume no reordering occurs in the network stack.
I should make a correction here: in the case of epoll, since it only notifies that the socket is write-ready and the actual write operation happens inside the application, we can be sure that the completion handler for the write operation is queued before the read operation. However, in the case of io_uring or Windows IOCP, the event is received only after the actual write is complete, so reordering can become an issue.