]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-ana: Use -1 status for client aborts during queuing and connect
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Jun 2021 12:07:24 +0000 (14:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Jun 2021 15:17:34 +0000 (17:17 +0200)
commit5e702fcadcd82eb77613f0e8410537f54c5b37ce
treec034f8bd77649e71bda7c18127e80ec89413abba
parentf22b032956bc492dcf47b2a909f91a6fb2c6e49b
MINOR: http-ana: Use -1 status for client aborts during queuing and connect

When a client aborts while the session is in the queue or during the connect
stage, instead of reporting a 503-Service-Unavailable error in logs, -1
status is used. It means -1 status is now reported with 'CC' and 'CQ'
termination state.

Indeed, when a client aborts before the server connection is established,
there is no reason to report a 503 because nothing is sent to the
server. And in this case, because it is a client abort, it is useless to
send any response to the client. Thus -1 status is approriate. This status
is used in log messages when the connection is closed and no response is
sent.

This patch should fix the issue #1266.
src/http_ana.c