]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Set TCP_NODELAY on the TCP connection to backends 11734/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 30 Jun 2022 09:06:24 +0000 (11:06 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 30 Jun 2022 09:06:24 +0000 (11:06 +0200)
commit059c8f524ee1e467c06787d591b779e08a279439
treeaabd9e83164e8675b2c35b8ade4ba1d6ef57f406
parentcdebae97dd7b00bc8007ff342e26da2e3e3598a9
dnsdist: Set TCP_NODELAY on the TCP connection to backends

Setting `TCP_NODELAY` disables Nagle's algorithm, which is unfortunately
not always playing nice with TCP delayed ACKs. This is especially true
when the backend supports out-of-order processing, allowing dnsdist to
send several queries at once without waiting for an answer. In that case
dnsdist often has to wait several milliseconds (20ms is common) before
the remote end decides to send the delayed ACK which allows us to send
the next query.
pdns/dnsdistdist/dnsdist-tcp-downstream.cc