]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: change the way incoming TCP higher than max_tcp_clients is handled
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Aug 2024 08:55:39 +0000 (10:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Aug 2024 08:55:39 +0000 (10:55 +0200)
commita4adf35652ddb5949377364d7578c1d191400c51
tree8ac35572029cdd03cae85f117f506a7d9ba6a586
parentd0a86aaf84345a203541c52abadb272ea8959d03
rec: change the way incoming TCP higher than max_tcp_clients is handled

Keep accepting connections, but drop them immediately if we're over limit. This
- avoids having lots of incoming TCP connections at the listen queue in the OS
- Immediately takes effect, instead of relying on the lazy enforming of the limit

No seperate counter for now, also, maybe a log message should be added?
Also consider the per client limit for that.
pdns/recursordist/rec-main.cc
pdns/recursordist/rec-main.hh
pdns/recursordist/rec-tcp.cc