Skip to content

Commit

Permalink
params: Add req_overflow_status parameter
Browse files Browse the repository at this point in the history
Adds a Varnish parameter for whether and which
HTTP response code should be sent in case of a
request parameter overflow.
The default value (500) keeps the old behavior
which silently closes the connection.
  • Loading branch information
cartoush authored and nigoroll committed Jan 22, 2025
1 parent af2f05d commit daf82e4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/tbl/params.h
Original file line number Diff line number Diff line change
@@ -869,6 +869,18 @@ PARAM_SIMPLE(
"IPv4 and IPv6 addresses."
)

PARAM_SIMPLE(
/* name */ req_overflow_status,
/* type */ uint,
/* min */ "400",
/* max */ "500",
/* def */ "500",
/* units */ "HTTP code",
/* descr */
"HTTP code to be returned in case of a request overflow."
"Default value 500 closes connection silently without sending HTTP response."
)

PARAM_SIMPLE(
/* name */ rush_exponent,
/* type */ uint,

0 comments on commit daf82e4

Please sign in to comment.