public inbox for [email protected]
 help / color / mirror / Atom feed
* IORING_OP_READ and O_NONBLOCK behaviour
@ 2020-09-02 10:09 Norman Maurer
  2020-09-02 14:45 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Norman Maurer @ 2020-09-02 10:09 UTC (permalink / raw)
  To: io-uring; +Cc: Josef

Hi there,

We are currently working on integrating io_uring into netty and found some “suprising” behaviour which seems like a bug to me.

When a socket is marked as non blocking (accepted with O_NONBLOCK flag set) and there is no data to be read IORING_OP_READ should complete directly with EAGAIN or EWOULDBLOCK. This is not the case and it basically blocks forever until there is some data to read. Is this expected ?

This seems to be somehow related to a bug that was fixed for IO_URING_ACCEPT with non blocking sockets:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.8&id=e697deed834de15d2322d0619d51893022c90ea2

Thanks
Norman


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-02 16:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-02 10:09 IORING_OP_READ and O_NONBLOCK behaviour Norman Maurer
2020-09-02 14:45 ` Jens Axboe
2020-09-02 15:26   ` Pavel Begunkov
2020-09-02 15:35     ` Jens Axboe
2020-09-02 16:00       ` Pavel Begunkov
2020-09-02 16:02         ` Pavel Begunkov
2020-09-02 16:05         ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox