Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
75802e27
Commit
75802e27
authored
May 19, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a debug.no_backend() function to simulate a director failing to
pick a backend.
parent
a1b74f7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
vmod.vcc
lib/libvmod_debug/vmod.vcc
+4
-0
vmod_debug.c
lib/libvmod_debug/vmod_debug.c
+9
-0
No files found.
lib/libvmod_debug/vmod.vcc
View file @
75802e27
...
...
@@ -59,6 +59,10 @@ $Function STRING blob2hex(BLOB)
Hexdump a blob
$Function BACKEND no_backend()
Fails at backend selection
$Object obj(STRING)
Test object
...
...
lib/libvmod_debug/vmod_debug.c
View file @
75802e27
...
...
@@ -129,3 +129,12 @@ vmod_blob2hex(const struct vrt_ctx *ctx, VCL_BLOB b)
VRT_priv_fini
(
b
);
return
(
s
);
}
VCL_BACKEND
vmod_no_backend
(
const
struct
vrt_ctx
*
ctx
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
return
(
NULL
);
}
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