2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

make dispatcher hash sizes be primes, and provide an increment to help

resolve hash collisions
This commit is contained in:
Michael Graff
1999-12-15 17:14:52 +00:00
parent 271154eafd
commit 607dc8013a
8 changed files with 46 additions and 40 deletions

View File

@@ -146,11 +146,11 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr,
/*
* XXXRTH hardwired constants. We're going to need to determine if
* this UDP socket will be shared with the resolver, and if so, we
* need to set the hashsize to be be something bigger than 4.
* need to set the hashsize to be be something bigger than 17.
*/
ifp->udpdispatch = NULL;
result = dns_dispatch_create(mgr->mctx, ifp->udpsocket, ifp->task,
4096, 50, 50, 4, &ifp->udpdispatch);
4096, 50, 50, 17, 19, &ifp->udpdispatch);
if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"UDP dns_dispatch_create(): %s",