mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-15 20:39:44 -04: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 d5fd51c75b)
This commit is contained in:
parent
b23d838c30
commit
32efff0c67
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue