mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
BUG/MINOR: http: Fix bug introduced in previous patch in http_resync_states
The previous patch ("MINOR: http: Rely on analyzers mask to end processing in
forward_body functions") contains a bug for keep-alive transactions.
For these transactions, AN_REQ_FLT_END and AN_RES_FLT_END analyzers must be
removed only when all outgoing data was forwarded.
This commit is contained in:
parent
894da4c8ea
commit
a81ff60454
1 changed files with 5 additions and 3 deletions
|
|
@ -5665,9 +5665,11 @@ void http_resync_states(struct stream *s)
|
|||
s->req.flags |= CF_WAKE_WRITE;
|
||||
else if (s->res.buf->o)
|
||||
s->res.flags |= CF_WAKE_WRITE;
|
||||
s->req.analysers = AN_REQ_FLT_END;
|
||||
s->res.analysers = AN_RES_FLT_END;
|
||||
txn->flags |= TX_WAIT_CLEANUP;
|
||||
else {
|
||||
s->req.analysers = AN_REQ_FLT_END;
|
||||
s->res.analysers = AN_RES_FLT_END;
|
||||
txn->flags |= TX_WAIT_CLEANUP;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue