mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-31 10:31:46 +00:00
BUG/MINOR: h1-htx: Don't flag response as bodyless when a tunnel is established
This reverts commit 225a4d02e1
.
When a 200-OK response is replied to a CONNECT request or a
101-Switching-protocol, a tunnel is considered as established between the
client and the server. However, we must not declare the reponse as
bodyless. Of course, there is no payload, but tunneled data are expected.
Because of this bug, the zero-copy forwarding is disabled on the server
side.
This patch must be backported as far as 2.9.
This commit is contained in:
parent
f6e193f1b0
commit
a99d58819f
@ -293,7 +293,6 @@ static int h1_postparse_res_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx
|
||||
h1m->flags &= ~(H1_MF_CLEN|H1_MF_CHNK);
|
||||
h1m->flags |= H1_MF_XFER_LEN;
|
||||
h1m->curr_len = h1m->body_len = 0;
|
||||
flags |= HTX_SL_F_BODYLESS_RESP;
|
||||
}
|
||||
else if ((h1m->flags & H1_MF_METH_HEAD) || (code >= 100 && code < 200) ||
|
||||
(code == 204) || (code == 304)) {
|
||||
|
Loading…
Reference in New Issue
Block a user