[tor-bugs] #18642 [Core Tor/Tor]: Teach the OOM handler about the DNS cache

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 11 01:53:21 UTC 2018


#18642: Teach the OOM handler about the DNS cache
---------------------------------------+----------------------------------
 Reporter:  nickm                      |          Owner:  (none)
     Type:  enhancement                |         Status:  new
 Priority:  Medium                     |      Milestone:  Tor: unspecified
Component:  Core Tor/Tor               |        Version:
 Severity:  Normal                     |     Resolution:
 Keywords:  tor-dos oom tor-relay dns  |  Actual Points:
Parent ID:                             |         Points:  1
 Reviewer:                             |        Sponsor:  SponsorV-can
---------------------------------------+----------------------------------

Comment (by neel):

 My PR is available here: https://github.com/torproject/tor/pull/223

 What I do for the OOM handler in this PR is that I clear the cache with
 `purge_expired_resolves()` with `now` as the current time, and increase
 the interval by an hour until either we cleared enough memory or there are
 no more entries.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18642#comment:17>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list