]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: deviceatlas: precompute maxhdrlen to skip oversized headers early
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:24:06 +0000 (13:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 14:49:00 +0000 (15:49 +0100)
commit076ec9443c6d3e40f2b428be0e362594feb833ba
treea8de444ddc120c11aac21eff89ed8795abb7a7fd
parentf5d03bbe13a3026b33d5fb93a840d87be11bf2c2
MINOR: deviceatlas: precompute maxhdrlen to skip oversized headers early

Precompute the maximum header name length from the atlas evidence
headers at init and hot-reload time. Use it in da_haproxy_fetch() to
skip headers early that cannot match any known DeviceAtlas evidence
header, avoiding unnecessary string copies and comparisons.
addons/deviceatlas/da.c