]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: don't report client aborts as server errors
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2012 12:35:37 +0000 (13:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2012 12:50:02 +0000 (13:50 +0100)
commitf003d375ec5190e7d99cfa14a9b09e7ca6c55daf
treef46fc37fb41a64c43e58cc2aefedc2665d59e952
parentfee48ce45295d9ac8cd97bb850860ae31c5e4df0
BUG/MINOR: http: don't report client aborts as server errors

If a client aborts with an abortonclose flag, the close is forwarded
to the server and when server response is processed, the analyser thinks
it's the server who has closed first, and logs flags "SD" or "SH" and
counts a server error. In order to avoid this, we now first detect that
the client has closed and log a client abort instead.

This likely is the reason why many people have been observing a small rate
of SD/SH flags without being able to find what the error was.

This fix should probably be backported to 1.4.
src/proto_http.c