]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: use real buffers to store requests and responses
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Sep 2012 13:28:30 +0000 (15:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 22:33:14 +0000 (00:33 +0200)
commit1ae1b7b53cc1239886bf81cedd391ce982447178
treeb0483a427e4416222a6daba50d00fab632aa6376
parent5b3a202f789a523f92c58e6597e3c684d85808b2
MEDIUM: checks: use real buffers to store requests and responses

Till now the request was made in the trash and sent to the network at
once, and the response was read into a preallocated char[]. Now we
allocate a full buffer for both the request and the response, and make
use of it.

Some of the operations will probably be replaced later with buffer macros
but the point was to ensure we could migrate to use the data layers soon.

One nice improvement caused by this change is that requests are now formed
at the beginning of the check and may safely be sent in multiple chunks if
needed.
include/types/server.h
src/cfgparse.c
src/checks.c
src/haproxy.c