]> git.ipfire.org Git - thirdparty/bind9.git/commit
Throttle the reading when writes are asynchronous
authorOndřej Surý <ondrej@isc.org>
Tue, 2 Jul 2024 18:17:49 +0000 (20:17 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 3 Jul 2024 07:10:20 +0000 (09:10 +0200)
commit4b7c61381f186e20a476c35032a871295ebbd385
tree1d2604a5c43a168fde83a4e5fb0d07ab77f11545
parent050a88898a4d88267b85b39f9bdceeaa8f4855bc
Throttle the reading when writes are asynchronous

Be more aggressive when throttling the reading - when we can't send the
outgoing TCP synchronously with uv_try_write(), we start throttling the
reading immediately instead of waiting for the send buffers to fill up.

This should not affect behaved clients that read the data from the TCP
on the other end.

(cherry picked from commit bc3e713317df838b4bbe6582b357cd8d78e585cd)
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c