From: Aleš Mrázek Date: Mon, 24 Nov 2025 19:12:32 +0000 (+0100) Subject: daemon/defer.c: replaced ETIME with ETIMEDOUT for timeout errors X-Git-Tag: v6.0.17~4^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c1af0db951cefbf1b3cb019d326600c0cf173e;p=thirdparty%2Fknot-resolver.git daemon/defer.c: replaced ETIME with ETIMEDOUT for timeout errors ETIMEDOUT explicitly indicates a timeout condition defined by POSIX and improves portability. --- diff --git a/daemon/defer.c b/daemon/defer.c index 5d0c2a43f..cffb53991 100644 --- a/daemon/defer.c +++ b/daemon/defer.c @@ -461,7 +461,7 @@ static inline void process_single_deferred(void) } } - break_query(ctx, ETIME); + break_query(ctx, ETIMEDOUT); return; } @@ -528,7 +528,7 @@ static inline void cleanup_queues(void) uint64_t age_ns = defer_sample_state.stamp - idata->req_stamp; if (age_ns < REQ_TIMEOUT) break; pop_query_queue(i); - break_query(ctx, ETIME); + break_query(ctx, ETIMEDOUT); cnt++; } if (cnt > 0) {