]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] added the hdr_idx structure for future HTTP header indexing
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2006 14:21:35 +0000 (15:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2006 14:21:35 +0000 (15:21 +0100)
commite5f20dcea81529938ec4a6b1386b8ace36b0ce58
treefb6a30dab49d91fbb41d0ab65f7da649969df3ae
parent09536952b30d8f2fd54441743ea5fd9fda6104d3
[MEDIUM] added the hdr_idx structure for future HTTP header indexing

This structure will consume 4 bytes per header to keep track of
headers within a request or a response without having to parse
the whole request for each regex. As it's not possible to allocate
only 4 bytes, we define a max number of HTTP headers. We set it
to (BUFSIZE+79)/80 so that 8kB buffers can contain 100 headers
(like Apache), resulting in 400 bytes dedicated to indexation,
or about 400/(2*8kB) ~= 2.4% of the memory usage.
Makefile
Makefile.bsd
include/common/defaults.h
include/types/proxy.h
include/types/session.h
src/client.c