commit | fa4a6630950138cfcb8904855c7517d9fdd472f7 | [log] [tgz] |
---|---|---|
author | Baptiste Assmann <bedis9@gmail.com> | Thu May 04 09:05:00 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jun 02 11:40:01 2017 +0200 |
tree | 656865b54a8eda25fa15498f64ef3147bc9c6b2f | |
parent | 729c901c3fcca6f4950e2b0e086e86cc2a73bbde [diff] |
MINOR: dns: implement a LRU cache for DNS resolutions Introduction of a DNS response LRU cache in HAProxy. When a positive response is received from a DNS server, HAProxy stores it in the struct resolution and then also populates a LRU cache with the response. For now, the key in the cache is a XXHASH64 of the hostname in the domain name format concatened to the query type in string format.