]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: 51d: add LRU-based cache on User-Agent string detection
authorDragan Dosen <ddosen@haproxy.com>
Mon, 29 Jun 2015 14:43:26 +0000 (16:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Jun 2015 08:43:03 +0000 (10:43 +0200)
commit105c8e63680e7fa4c9d19a4240ce5c24921ebefa
tree58a777a4bd56ea7b90e05aff0dfe93d582a1f28e
parent93b38d9191a2f03d623cd697b509d00cd9b9d00f
MEDIUM: 51d: add LRU-based cache on User-Agent string detection

This cache is used by 51d converter. The input User-Agent string, the
converter args and a random seed are used as a hashing key. The cached
entries contains a pointer to the resulting string for specific
User-Agent string detection.

The cache size can be tuned using 51degrees-cache-size parameter.
include/types/global.h
src/51d.c
src/haproxy.c