From 377abc95d18072a3eb4f89497cc7edf4fab9d214 Mon Sep 17 00:00:00 2001 From: Michael Baikov Date: Mon, 14 Jul 2025 18:10:39 -0400 Subject: [PATCH] Fix the description of TimeoutFlags::ETIME_SUCCESS (#342) --- src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.rs b/src/types.rs index d28b51f0..07ca35b9 100644 --- a/src/types.rs +++ b/src/types.rs @@ -85,9 +85,9 @@ bitflags! { /// unless one of the following flags is set (they may not both be set): /// [`types::TimeoutFlags::BOOTTIME`] or [`types::TimeoutFlags::REALTIME`]. /// - /// The default behavior when the timeout expires is to return a CQE with -libc::ETIME in - /// the res field. To change this behavior to have zero returned, include - /// [`types::TimeoutFlags::ETIME_SUCCESS`]. + /// The default behavior when the timeout expires is to sever dependent links, as a failed + /// request normally would. To keep the links untouched include [`types::TimeoutFlags::ETIME_SUCCESS`]. + /// CQE will still contain -libc::ETIME in the res field #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct TimeoutFlags: u32 { const ABS = sys::IORING_TIMEOUT_ABS;