mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-08 08:07:10 +02:00
MINOR: mux-h2: also support emitting CONTINUATION on trailers
Trailers were forgotten by commit cb985a4da6
("MEDIUM: mux-h2: support
emitting CONTINUATION frames after HEADERS"), this one just fixes this
miss.
This commit is contained in:
parent
804ef244c6
commit
572d9f5847
@ -5525,6 +5525,15 @@ static size_t h2s_make_trailers(struct h2s *h2s, struct htx *htx)
|
|||||||
/* update the frame's size */
|
/* update the frame's size */
|
||||||
h2_set_frame_size(outbuf.area, outbuf.data - 9);
|
h2_set_frame_size(outbuf.area, outbuf.data - 9);
|
||||||
|
|
||||||
|
if (outbuf.data > h2c->mfs + 9) {
|
||||||
|
if (!h2_fragment_headers(&outbuf, h2c->mfs)) {
|
||||||
|
/* output full */
|
||||||
|
if (b_space_wraps(mbuf))
|
||||||
|
goto realign_again;
|
||||||
|
goto full;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* commit the H2 response */
|
/* commit the H2 response */
|
||||||
TRACE_PROTO("sent H2 trailers HEADERS frame", H2_EV_TX_FRAME|H2_EV_TX_HDR|H2_EV_TX_EOI, h2c->conn, h2s);
|
TRACE_PROTO("sent H2 trailers HEADERS frame", H2_EV_TX_FRAME|H2_EV_TX_HDR|H2_EV_TX_EOI, h2c->conn, h2s);
|
||||||
b_add(mbuf, outbuf.data);
|
b_add(mbuf, outbuf.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user