]> git.ipfire.org Git - thirdparty/bind9.git/commit
DoH: Limit the number of delayed IO processing requests
authorArtem Boldariev <artem@boldariev.com>
Mon, 24 Feb 2025 16:32:23 +0000 (18:32 +0200)
committerArtem Boldariev <artem@boldariev.com>
Mon, 3 Mar 2025 09:32:11 +0000 (11:32 +0200)
commit0e1b02868a63d2c4f6f0c414b20d4b999adbcc46
tree3e357b762baaee5ad8655668b2c6c14923ebb669
parent0956fb9b9ec4d07f1b744a829dacfe7a1251a58e
DoH: Limit the number of delayed IO processing requests

Previously, a function for continuing IO processing on the next UV
tick was introduced (http_do_bio_async()). The intention behind this
function was to ensure that http_do_bio() is eventually called at
least once in the future. However, the current implementation allows
queueing multiple such delayed requests needlessly. There is currently
no need for these excessive requests as http_do_bio() can requeue them
if needed. At the same time, each such request can lead to a memory
allocation, particularly in BIND 9.18.

This commit ensures that the number of enqueued delayed IO processing
requests never exceeds one in order to avoid potentially bombarding IO
threads with the delayed requests needlessly.
lib/isc/netmgr/http.c