From: A. Wilcox Date: Fri, 30 Dec 2022 03:21:32 +0000 (-0600) Subject: dns: prefer monotonic clock for timeouts X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7d756e1c04de6eb3f2b3d3e1141a218bb329fcfb;hp=7d756e1c04de6eb3f2b3d3e1141a218bb329fcfb;p=musl dns: prefer monotonic clock for timeouts Before this commit, DNS timeouts always used CLOCK_REALTIME, which could produce spurious timeouts or delays if wall time changed for whatever reason. Now we try CLOCK_MONOTONIC and only fall back to CLOCK_REALTIME when it is unavailable. ---