Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
1a807636
Commit
1a807636
authored
Sep 09, 2011
by
Andreas Plesner Jacobsen
Committed by
Tollef Fog Heen
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .expected_response to probe documentation.
Fix error message for .expected_response. Fixes #997
parent
184ad943
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
vcl.rst
doc/sphinx/reference/vcl.rst
+3
-1
vcc_backend.c
lib/libvcl/vcc_backend.c
+3
-2
No files found.
doc/sphinx/reference/vcl.rst
View file @
1a807636
...
...
@@ -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 {
...
...
lib/libvcl/vcc_backend.c
View file @
1a807636
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment