commit | 40e6b550ce35ff164f71799d8378c4e2350d3640 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Jun 25 16:04:50 2020 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Jun 25 21:50:20 2020 +0200 |
tree | 02d371fcf8cef93b08f5d63bda396991bb6b9d36 | |
parent | bfa3e81a7baf58ff8f92cd34818a7e0be47ea540 [diff] |
BUG/MEDIUM: http-ana: Don't loop trying to generate a malformed 500 response When HAProxy generates a 500 response, if the formatting failed, for instance because the message is larger than a buffer, it retries to format it in loop. To fix the bug, we must stop trying to send a response if it is a non-rewritable response (TX_CONST_REPLY flag is set on the HTTP transaction). Because this part is not trivial, some comments have been added. No backport is needed.