When OOM, free cached hidden service descriptors too.

This commit is contained in:
Nick Mathewson
2015-01-04 20:05:29 -05:00
parent eda5cebd6c
commit 3033ba9f5e
6 changed files with 126 additions and 23 deletions
+8
View File
@@ -0,0 +1,8 @@
o Minor features (DOS resistance):
- Count the total number of bytes used storing hidden service descriptors
against the value of MaxMemInQueues. If we're low on memory, and more
than 20% of our memory is used holding hidden service descriptors, free
them until no more than 10% of our memory holds hidden service
descriptors. Free the least recently fetched descriptors first.
Resolves ticket 13806.