-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache: If enabled return HTTP response to RX_OVERFLOW
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
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,28 @@ | ||
varnishtest "HTTP response to RX_OVERFLOW" | ||
|
||
# server s1 {} -start | ||
|
||
varnish v1 -cliok "param.set http_req_size 500b" -vcl { | ||
backend default none; | ||
} -start | ||
|
||
client c1 { | ||
txreq -url "/world?hello=world${string,repeat,100,&hello=world}" | ||
expect_close | ||
} -run | ||
|
||
varnish v1 -cliok "param.set feature +overflow_http_resp" | ||
|
||
client c1 { | ||
txreq -url "/world?hello=world${string,repeat,100,&hello=world}" | ||
rxresp | ||
expect resp.status == 413 | ||
} -run | ||
|
||
varnish v1 -cliok "param.set req_overflow_status 414" | ||
|
||
client c1 { | ||
txreq -url "/world?hello=world${string,repeat,100,_hello-world}" | ||
rxresp | ||
expect resp.status == 414 | ||
} -run |