Skip to content
  • Evan Hunt's avatar
    include the nodenames when calculating memory to purge · 04d319af
    Evan Hunt authored
    when the cache is over memory, we purge from the LRU list until
    we've freed the approximate amount of memory to be added. this
    approximation could fail because the memory allocated for nodenames
    wasn't being counted.
    
    add a dns_name_size() function so we can look up the size of nodenames,
    then add that to the purgesize calculation.
    04d319af