Commit 1a807636 authored by Andreas Plesner Jacobsen's avatar Andreas Plesner Jacobsen Committed by Tollef Fog Heen

Add .expected_response to probe documentation.

Fix error message for .expected_response.

Fixes #997
parent 184ad943
......@@ -284,7 +284,8 @@ req.backend.healthy .window is how many of the latest polls we
examine, while .threshold is how many of those must have succeeded for
us to consider the backend healthy. .initial is how many of the
probes are considered good when Varnish starts - defaults to the same
amount as the threshold.
amount as the threshold. .expected_response is the expected backend
HTTP response code.
A backend with a probe can be defined like this, together with the
backend or director:::
......@@ -310,6 +311,7 @@ Or it can be defined separately and then referenced:::
.window = 8;
.threshold = 3;
.initial = 3;
.expected_response = 200;
}
backend www {
......
......@@ -305,8 +305,9 @@ vcc_ParseProbeSpec(struct vcc *tl)
status = vcc_UintVal(tl);
if (status < 100 || status > 999) {
VSB_printf(tl->sb,
"Must specify .status with exactly three "
" digits (100 <= x <= 999)\n");
"Must specify .expected_response with "
"exactly three digits "
"(100 <= x <= 999)\n");
vcc_ErrWhere(tl, tl->t);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment