]> git.ipfire.org Git - thirdparty/bind9.git/commit
Move setting the sock->write_timeout to the async_*send
authorOndřej Surý <ondrej@isc.org>
Tue, 17 May 2022 19:31:37 +0000 (21:31 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 19 May 2022 20:37:52 +0000 (22:37 +0200)
commiteabee4d7d98efe831b210ced94be15b67dca3b27
treeab3d76f103203700962605fa78fee84f0120f093
parentacfec1bff0c7b68833707538c691090a7e8e8965
Move setting the sock->write_timeout to the async_*send

Setting the sock->write_timeout from the TCP, TCPDNS, and TLSDNS send
functions could lead to (harmless) data race when setting the value for
the first time when the isc_nm_send() function would be called from
thread not-matching the socket we are sending to.  Move the setting the
sock->write_timeout to the matching async function which is always
called from the matching thread.

(cherry picked from commit 61117840c18778e69e3073cc01dbea579271a014)
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c