]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http-ana: Properly handle internal processing errors
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Dec 2019 10:29:38 +0000 (11:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commitb8a5371a3229ea2b17fa695dd6d654b9433a7828
tree55a19f5f2f378f4f5cbd5e7f306acfca13ff6942
parentd4ce6c2957a3cff1b80f0fb9ab8e31841372820f
MEDIUM: http-ana: Properly handle internal processing errors

Now, processing errors are properly handled. Instead of returning an error 400
or 502, depending where the error happens, an error 500 is now returned. And the
processing_errors counter is incremented. By default, when such error is
detected, the SF_ERR_INTERNAL stream error is used. When the error is caused by
an allocation failure, and when it is reasonnably possible, the SF_ERR_RESOURCE
stream error is used. Thanks to this patch, bad requests and bad responses
should be easier to detect.
src/http_ana.c