From: Ondřej Surý Date: Fri, 20 Mar 2026 01:06:29 +0000 (+0100) Subject: fix: dev: Fix data race in server round-trip time tracking X-Git-Tag: v9.21.21~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=892f50712df162a9bbc739378de9feec7c30ac65;p=thirdparty%2Fbind9.git fix: dev: Fix data race in server round-trip time tracking The SRTT (Smoothed Round-Trip Time) update for remote servers was not atomic — concurrent callers could each read the same value and one update would be silently lost. Additionally, the aging decay applied once per second could run multiple times if several threads entered the function simultaneously. Use compare-and-swap loops for the SRTT update and for the aging timestamp to ensure no updates are lost. Merge branch 'ondrej/fix-non-atomic-srtt-aging' into 'main' See merge request isc-projects/bind9!11718 --- 892f50712df162a9bbc739378de9feec7c30ac65