Software /
code /
prosody
Comparison
net/dns.lua @ 4400:ac651265766c
net.dns: Preserve metatable on manual cache purge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 19 Oct 2011 16:21:56 -0400 |
parent | 4373:9a20acf315c9 |
child | 4422:c25dee24623f |
comparison
equal
deleted
inserted
replaced
4399:1b4161970842 | 4400:ac651265766c |
---|---|
703 for name,rrs in pairs(names) do | 703 for name,rrs in pairs(names) do |
704 prune(rrs, self.time, 'soft') | 704 prune(rrs, self.time, 'soft') |
705 end | 705 end |
706 end | 706 end |
707 end | 707 end |
708 else self.cache = {}; end | 708 else self.cache = setmetatable({}, cache_metatable); end |
709 end | 709 end |
710 | 710 |
711 | 711 |
712 function resolver:query(qname, qtype, qclass) -- - - - - - - - - - -- query | 712 function resolver:query(qname, qtype, qclass) -- - - - - - - - - - -- query |
713 qname, qtype, qclass = standardize(qname, qtype, qclass) | 713 qname, qtype, qclass = standardize(qname, qtype, qclass) |