tor/changes/bug11792
Nick Mathewson 8e55cafd67 Count zlib buffer memory towards OOM totals.
Part of 11792.

(Uses the zlib-endorsed formula for memory needs for inflate/deflate
from "zconf.h".)
2014-08-24 13:04:27 -04:00

11 lines
482 B
Text

o Minor features (security, OOM):
- When closing an edge connection because we've run out of memory,
also count the amount of memory that any tunnelled directory
connection attached to that connection had consumed. Part of
ticket 11792.
- When considering whether we're running low on memory, consider
memory that was allocated as part of zlib buffers as well.
Count that memory as reclaimed by our OOM handler. Part of
ticket 11792.