]> 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 06:45:39 +0000 (08:45 +0200)
commitbc3e713317df838b4bbe6582b357cd8d78e585cd
tree09a14c532a0f985a2e6c2fb9809b3a93cda027b1
parent92a73bca2d0140feb9bad334cd13dfee25388341
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.
lib/isc/netmgr/tcp.c