]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stats: add support for HTTP keep-alive on the stats page
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:11:35 +0000 (21:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:40:16 +0000 (21:40 +0100)
commitf3221f99acdd792352d4ee648d987270d74ca38e
treee3ccc99a4b68d844445e92d798a960ba74fd78b8
parent61f7f0a959c7739ee322cb1809944cbc5b70463f
MEDIUM: stats: add support for HTTP keep-alive on the stats page

In theory the principle is simple as we just need to send HTTP chunks
if the client is 1.1 compatible. In practice it's harder because we
have to append a CR LF after each block of data and we're never sure
to have the room for this. In order not to have to deal with this, we
instead send the CR LF prior to each chunk size. The only issue is for
the first chunk and for this reason we avoid to send the empty header
line when using chunked encoding.
include/proto/dumpstats.h
src/dumpstats.c
src/proto_http.c