Scale the DNS random scket pool on the value of dns-forward-max.

This commit is contained in:
Simon Kelley
2021-03-26 22:02:04 +00:00
parent 4a8c098840
commit ea28d0ef8a
5 changed files with 21 additions and 10 deletions

View File

@@ -1130,7 +1130,8 @@ extern struct daemon {
pid_t tcp_pids[MAX_PROCS];
int tcp_pipes[MAX_PROCS];
int pipe_to_parent;
struct randfd randomsocks[RANDOM_SOCKS];
int numrrand;
struct randfd *randomsocks;
struct randfd_list *rfl_spare, *rfl_poll;
int v6pktinfo;
struct addrlist *interface_addrs; /* list of all addresses/prefix lengths associated with all local interfaces */