mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-18 07:11:00 +01:00
[CLEANUP] http_server_error() must not purge a previous pending response
This can cause parts of responses to be truncated in case of pipelined requests if the second request generates an error before the first request is completely flushed. (cherry picked from commit d5fd51c75be6479539228f84377622a986b23be2)
This commit is contained in:
parent
b23d838c30
commit
32efff0c67
@ -532,8 +532,8 @@ int http_find_header(const char *name,
|
||||
static void http_server_error(struct session *t, struct stream_interface *si,
|
||||
int err, int finst, int status, const struct chunk *msg)
|
||||
{
|
||||
buffer_abort(si->ob);
|
||||
buffer_erase(si->ob);
|
||||
buffer_erase(si->ib);
|
||||
buffer_write_ena(si->ib);
|
||||
if (status > 0 && msg) {
|
||||
t->txn.status = status;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user