]> granicus.if.org Git - pdns/commit
dnsdist: Add an option to limit the number of queued TCP connections
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 11 Mar 2016 15:31:24 +0000 (16:31 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 11 Mar 2016 15:31:24 +0000 (16:31 +0100)
commit6c1ca9900ab8ad8a1925a3f58c0a8cbf7790908b
tree27ad9ccd40c680b1df4f81b82fe995ca25652a02
parent0048c4c5cd8b77422bb186c742a656b7fceeb71a
dnsdist: Add an option to limit the number of queued TCP connections

By default, if all TCP threads are busy we will queue incoming TCP
connections until the communication pipes are full.
In some setup, we might run out of file descriptors quickly,
causing new TCP connections but also health checks, web requests,
console connections to fail.
This new `setMaxTCPQueuedConnections()` option limits the number of
queued connections, dropping new ones when the threshold is
reached.
pdns/README-dnsdist.md
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh