Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2_hpack: Enforce http_req_hdr_len limit
Refs #3709
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
varnishtest "h2 req limits" | ||
|
||
varnish v1 -cliok "param.set feature +http2" | ||
varnish v1 -cliok "param.set http_req_hdr_len 40b" | ||
varnish v1 -vcl { | ||
backend be none; | ||
} -start | ||
|
||
logexpect l1 -v v1 -g raw -q BogoHeader { | ||
expect 0 1001 BogoHeader "Header too large: :path" | ||
} -start | ||
|
||
client c1 { | ||
stream next { | ||
txreq -url ${string,repeat,4,/123456789} | ||
rxrst | ||
expect rst.err == ENHANCE_YOUR_CALM | ||
} -run | ||
} -run | ||
|
||
logexpect l1 -wait |