Commit e3207ffe authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

.expected_response is a better idea than .status

Tip o' the hat to: tfheen



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4357 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c4cd7bd0
......@@ -189,7 +189,7 @@ varnish v1 -badvcl {
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .status = 13; }
.probe = { .expected_response = 13; }
}
}
......@@ -7,7 +7,7 @@ varnish v1 -vcl {
backend b1 {
.host = "127.0.0.1";
.probe = {
.status = 204;
.expected_response = 204;
}
}
}
......
......@@ -348,7 +348,7 @@ vcc_ParseProbe(struct tokenlist *tl)
fs = vcc_FldSpec(tl,
"?url",
"?request",
"?status",
"?expected_response",
"?timeout",
"?interval",
"?window",
......@@ -408,7 +408,7 @@ vcc_ParseProbe(struct tokenlist *tl)
initial = vcc_UintVal(tl);
vcc_NextToken(tl);
ERRCHK(tl);
} else if (vcc_IdIs(t_field, "status")) {
} else if (vcc_IdIs(t_field, "expected_response")) {
status = vcc_UintVal(tl);
if (status < 100 || status > 999) {
vsb_printf(tl->sb,
......
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