Skip to content

Unexpected behaviour of IORING_OP_CONNECT #683

Locked Answered by DylanZA
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

from man connect(2):
If the connection or binding succeeds, zero is returned. On
error, -1 is returned, and errno is set to indicate the error.

You should look at errno to get the actual error code.

io_uring just returns the error code in the completion

(I assume - I have not run this rust code)

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@ghost
Comment options

@ghost
Comment options

@ammarfaizi2
Comment options

@ghost
Comment options

Answer selected by axboe
Comment options

You must be logged in to vote
4 replies
@ghost
Comment options

@ghost
Comment options

@axboe
Comment options

@axboe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants