]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http: don't report server aborts as client aborts
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Apr 2014 18:29:01 +0000 (20:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Apr 2014 18:29:01 +0000 (20:29 +0200)
commitb2c6a786f707d08c92bfd9ea627c38612afca8e0
tree556ecfd91fa6e9ea788df9ab3e5e9b6f8c8fdeea
parent3ca544882833a6d5f75a7e54497cc916a481e4af
BUG/MINOR: http: don't report server aborts as client aborts

Commit f003d37 ("BUG/MINOR: http: don't report client aborts as server errors")
attempted to fix a longstanding issue by which some client aborts could be
logged as server errors. Unfortunately, one of the tests involved there also
catches truncated server responses, which are reported as client aborts.

Instead, only check that the client has really closed using the abortonclose
option, just as in done in the request path (which means that the close was
propagated to the server).

The faulty fix above was introduced in 1.5-dev15, and was backported into
1.4.23.

Thanks to Patrick Hemmer for reporting this issue with traces showing the
root cause of the problem.
src/proto_http.c