]> git.ipfire.org Git - thirdparty/bind9.git/commit
Get rid of RW locks in the DoH code
authorArtem Boldariev <artem@boldariev.com>
Tue, 13 Jul 2021 09:32:47 +0000 (12:32 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 4 Aug 2021 07:32:25 +0000 (10:32 +0300)
commitf388b71378e6284e592a4f53be12ded516ab80e1
tree4e3e185a890efdfae38e8701ee42665f78a4b219
parentebb670c8f867b09f08da966effd13cb7c23e3431
Get rid of RW locks in the DoH code

This commit gets rid of RW locks in a hot path of the DoH code. In the
original design, it was implied that we add new endpoints after the
HTTP listener was created. Such a design implies some locking. We do
not need such flexibility, though. Instead, we could build a set of
endpoints before the HTTP listener gets created. Such a design does
not need RW locks at all.
bin/tests/test_server.c
lib/isc/include/isc/netmgr.h
lib/isc/include/isc/types.h
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr-int.h
lib/isc/tests/doh_test.c
lib/ns/interfacemgr.c