man/io_uring_prep_accept.3: add note on multishot and addr/addrlen

Link: https://github.com/axboe/liburing/issues/672
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2022-10-06 15:32:19 -06:00
parent 6edf54b0c9
commit 3dd78e03e5
+11 -1
View File
@@ -102,7 +102,17 @@ look at the CQE
and see if
.B IORING_CQE_F_MORE
is set on completion as an indication of whether or not the accept request
will generate further CQEs. The multishot variants are available since 5.19.
will generate further CQEs. Note that for the multishot variants, setting
.B addr
and
.B addrlen
may not make a lot of sense, as the same value would be used for every
accepted connection. This means that the data written to
.B addr
may be overwritten by a new connection before the application has had time
to process a past connection. If the application knows that a new connection
cannot come in before a previous one has been processed, it may be used as
expected. The multishot variants are available since 5.19.
For multishot with direct descriptors,
.B IORING_FILE_INDEX_ALLOC