Encountered a rather peculiar issue where sqe->flags |= IOSQE_IO_LINK must be set after io_uring_prep_connect, otherwise it results in an Invalid argument error.
✘: io_uring_prep_link_timeout cqe.res is Invalid argument
sqe->user_data = 9901;
sqe->flags |= IOSQE_IO_LINK; // if before io_uring_prep_connect, io_uring_prep_link_timeout return Invalid argument;
io_uring_prep_connect(sqe, conn.fd, (sockaddr*)&conn.addr, sizeof(conn.addr));
....
io_uring_prep_link_timeout.....
Encountered a rather peculiar issue where sqe->flags |= IOSQE_IO_LINK must be set after io_uring_prep_connect, otherwise it results in an Invalid argument error.
✘: io_uring_prep_link_timeout cqe.res is Invalid argument
✔ no problem;