]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Fix data race in server round-trip time tracking
authorOndřej Surý <ondrej@isc.org>
Fri, 20 Mar 2026 01:06:29 +0000 (02:06 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 20 Mar 2026 01:06:29 +0000 (02:06 +0100)
commit892f50712df162a9bbc739378de9feec7c30ac65
treefede6555c7b423772ec9665ea78277bb2d5717a3
parent73dcf9373a9e861a26374b02d11c074b0d3b576b
parent4d15494b943eeb246115d9de891a3e5da3a56df5
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