Hacker News new | ask | show | jobs
by ethegwo 596 days ago
> if the accept completes before the SQE for the cancellation is submitted, the FD will still be leaked.

If the accept completes before the cancel SQE is submitted, the cancel operation will fail and the runtime will have a chance to poll the CQE in place and close the fd.

1 comments

Hmm, because the cancel CQE will have a reference to the CQE it was supposed to cancel? Yes, that could work.