Skip to content

Can you link timeout SQEs to multishot recv? #904

Closed Answered by isilence
cmazakas asked this question in Q&A
Discussion options

You must be logged in to vote

Does multishot recv() support io_uring_prep_link_timeout?

I don't remember actually trying it out but it should work, i.e. trying to cancel the request when time comes. We'd need to check how racy it is though, the case I'm afraid of is if it can ignores cancellation and continue running.

This leads to an even more general question, how do multishot ops work with chaining SQEs? Is the chain executed only once or does it happen every time a CQE comes in?

Linked timeouts work differently from normal links. The latter ones will be run only after the multishot is cancelled, fails, etc..

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cmazakas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants