diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-12 03:32:24 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-12 03:32:24 +0000 |
commit | ac4bbe6bd6be3bea77822e95f6d485c4744eaeac (patch) | |
tree | f737f6b56059ce09e56bcda9fd6a8f381f7f23c8 /src | |
parent | cbe19e29c7037b2353aa29f9a5b84a586f05e1a2 (diff) | |
download | tinyproxy-ac4bbe6bd6be3bea77822e95f6d485c4744eaeac.tar.gz tinyproxy-ac4bbe6bd6be3bea77822e95f6d485c4744eaeac.zip |
Increased the number of "insertions" before the free memory.
Diffstat (limited to 'src')
-rw-r--r-- | src/dnscache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnscache.c b/src/dnscache.c index a347ec3..588ea15 100644 --- a/src/dnscache.c +++ b/src/dnscache.c @@ -1,4 +1,4 @@ -/* $Id: dnscache.c,v 1.15 2001-09-08 18:56:30 rjkaes Exp $ +/* $Id: dnscache.c,v 1.16 2001-09-12 03:32:24 rjkaes Exp $ * * This is a caching DNS system. When a host name is needed we look it up here * and see if there is already an answer for it. The domains are placed in a @@ -43,7 +43,7 @@ static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; #define UNLOCK() pthread_mutex_unlock(&mutex); #define DNSEXPIRE (5 * 60) -#define DNS_INSERT_LIMIT 1024 /* free the memory after inserts */ +#define DNS_INSERT_LIMIT 10000 /* free the memory after inserts */ struct dnscache_s { struct in_addr ipaddr; |