]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Try to send before calling epoll_wait
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 17 Sep 2020 15:04:04 +0000 (17:04 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 10 Nov 2020 08:52:23 +0000 (09:52 +0100)
commit44e34991ec27326930fbca60e773667d652e5a36
tree5185b2834dc4f28213adcff8add5ba5e88b6f927
parentc1a9629b5cabde881dcf3e3a9810d170ed6d4bf7
dnsdist: Try to send before calling epoll_wait

It usually works and saves adding the descriptor to the set, calling
epoll_wait() then removing the descriptor.
pdns/dnsdist-tcp.cc
pdns/dnsdistdist/dnsdist-tcp-downstream.cc
pdns/dnsdistdist/dnsdist-tcp-downstream.hh
pdns/dnsdistdist/dnsdist-tcp-upstream.hh
regression-tests.dnsdist/test_OOOR.py