]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: compute response time before processing headers
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Sep 2013 14:44:27 +0000 (16:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Sep 2013 14:53:11 +0000 (16:53 +0200)
commit7959a55e15566baa936b9880d216868e5390d8e5
tree16813664f6d3efbb39c1f414af706ead9f597d18
parent1d57e508104ccd085c1e70d147edcba9f6960c1b
MINOR: http: compute response time before processing headers

At the moment, HTTP response time is computed after response headers are
processed. This can misleadingly assign to the server some heavy local
processing (eg: regex), and also prevents response headers from passing
information related to the response time (which can sometimes be useful
for stats).

Let's retrieve the reponse time before processing the headers instead.

Note that in order to remain compatible with what was previously done,
we disable the response time when we get a 502 or any bad response. This
should probably be changed in 1.6 since it does not make sense anymore
to lose this information.
src/proto_http.c