Skip to content

Commit 3bd9a9e

Browse files
committed
BUG/MEDIUM: h3: Increase max number of headers when sending headers
In the same way than for the H2, the maximum number of headers that can be encoded when headers are sent must be increased to match the limit imposed when they are received. Reasons are the sames. On receive path, the maximum number of headers accepted must be higher than the configured limit to be able to handle pseudo headers and cookies headers. On the sending path, the same limit must be applied because the pseudo headers will consume some extra slots and the cookie header could be splitted. This patch should be backported as far as 2.6.
1 parent 785e633 commit 3bd9a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/h3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ static int h3_resp_headers_send(struct qcs *qcs, struct htx *htx)
15691569
struct buffer outbuf;
15701570
struct buffer headers_buf = BUF_NULL;
15711571
struct buffer *res;
1572-
struct http_hdr list[global.tune.max_http_hdr];
1572+
struct http_hdr list[global.tune.max_http_hdr * 2];
15731573
struct htx_sl *sl;
15741574
struct htx_blk *blk;
15751575
enum htx_blk_type type;

0 commit comments

Comments
 (0)