]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add a prefetch function for ACL pattern fetch
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Apr 2012 12:34:04 +0000 (14:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:09 +0000 (20:57 +0200)
commit14174bc4c018111d93560874d2390018870b14a7
tree0e33c1ed82d63b91969bc4085cd6192f798a47a8
parent9dab5fc4d4f9aaa9baacfd6ac4cefd88f4c36902
MEDIUM: http: add a prefetch function for ACL pattern fetch

This function will be called by all ACL fetch functions. Right now all ACL
fetch functions have to perform the exact same tests to check whether data
are available. Also, only one of them is able to actually parse an HTTP
request.

Using the prefetch function, it will be possible to try to parse a request
on the fly and to avoid the fetch if some data are missing. This will
significantly reduce the amount of tests in all ACL fetch functions.
src/proto_http.c