]> git.ipfire.org Git - thirdparty/bind9.git/commit
DoH: introduce manual read timer control
authorArtem Boldariev <artem@isc.org>
Tue, 9 Jul 2024 20:23:11 +0000 (23:23 +0300)
committerAndoni Duarte Pintado <andoni@isc.org>
Wed, 15 Jan 2025 15:05:47 +0000 (16:05 +0100)
commit36e9720d24a6c7d7174cdf38ff9ec51bd1ef802d
tree37038684b3cc0cd1428702a066c5767aee934242
parent4907248d1469e8538c91928d206d4f7ddde1fd9a
DoH: introduce manual read timer control

This commit introduces manual read timer control as used by StreamDNS
and its underlying transports. Before that, DoH code would rely on the
timer control provided by TCP, which would reset the timer any time
some data arrived. Now, the timer is restarted only when a full DNS
message is processed in line with other DNS transports.

That change is required because we should not stop the timer when
reading from the network is paused due to throttling. We need a way to
drop timed-out clients, particularly those who refuse to read the data
we send.

(cherry picked from commit 609a41517b1631c320876a41c43c68c9a0ee0f9f)
lib/isc/netmgr/http.c