bind9/lib
Ondřej Surý 1d066e4bc5 Distribute queries among threads even on platforms without lb sockets
On platforms without load-balancing socket all the queries would be
handle by a single thread.  Currently, the support for load-balanced
sockets is present in Linux with SO_REUSEPORT and FreeBSD 12 with
SO_REUSEPORT_LB.

This commit adds workaround for such platforms that:

1. setups single shared listening socket for all listening nmthreads for
   UDP, TCP and TCPDNS netmgr transports

2. Calls uv_udp_bind/uv_tcp_bind on the underlying socket just once and
   for rest of the nmthreads only copy the internal libuv flags (should
   be just UV_HANDLE_BOUND and optionally UV_HANDLE_IPV6).

3. start reading on UDP socket or listening on TCP socket

The load distribution among the nmthreads is uneven, but it's still
better than utilizing just one thread for processing all the incoming
queries
2020-12-03 09:20:33 +01:00
..
bind9 Update library API versions 2020-11-26 12:12:17 +01:00
dns Refactor netmgr and add more unit tests 2020-12-01 16:47:07 +01:00
irs Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
isc Distribute queries among threads even on platforms without lb sockets 2020-12-03 09:20:33 +01:00
isccc Update library API versions 2020-11-26 12:12:17 +01:00
isccfg Update library API versions 2020-11-26 12:12:17 +01:00
ns Refactor netmgr and add more unit tests 2020-12-01 16:47:07 +01:00
samples Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
win32/bindevt update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
.gitignore Provide unit test driver 2020-05-21 12:13:01 +02:00
Makefile.am Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
unit-test-driver.sh.in Provide unit test driver 2020-05-21 12:13:01 +02:00