summaryrefslogtreecommitdiff
path: root/include/dns.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-13 19:23:07 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-13 19:23:07 +0100
commit09c716ce117e3c89b4da7ab88f4caaefb43511b5 (patch)
treed0778f395584141121de34d7dd179ac3d2e79d5d /include/dns.h
parent24438c074648c16fa1adb2a8b2b18d4f8d916214 (diff)
Limit DNS cache size
Diffstat (limited to 'include/dns.h')
-rw-r--r--include/dns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dns.h b/include/dns.h
index de4bcf422..05df6f69c 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -302,6 +302,10 @@ class CoreExport DNS : public EventHandler
*/
static const int MAX_REQUEST_ID = 0xFFFF;
+ /** Maximum number of entries in cache
+ */
+ static const unsigned int MAX_CACHE_SIZE = 1000;
+
/**
* Currently cached items
*/