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
8790bec1
Commit
8790bec1
authored
Jul 03, 2019
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move vtc.panic to STRANDS
parent
bbf53b88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
vmod.vcc
lib/libvmod_vtc/vmod.vcc
+1
-1
vmod_vtc.c
lib/libvmod_vtc/vmod_vtc.c
+2
-5
No files found.
lib/libvmod_vtc/vmod.vcc
View file @
8790bec1
...
@@ -70,7 +70,7 @@ $Function IP no_ip()
...
@@ -70,7 +70,7 @@ $Function IP no_ip()
Returns a null IP address, not even a bogo_ip.
Returns a null IP address, not even a bogo_ip.
$Function VOID panic(STR
ING_LIST
)
$Function VOID panic(STR
ANDS
)
It can be useful to crash the child process in order to test the robustness
It can be useful to crash the child process in order to test the robustness
of a VMOD.
of a VMOD.
...
...
lib/libvmod_vtc/vmod_vtc.c
View file @
8790bec1
...
@@ -99,16 +99,13 @@ vmod_no_ip(VRT_CTX)
...
@@ -99,16 +99,13 @@ vmod_no_ip(VRT_CTX)
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
VCL_VOID
v_matchproto_
(
td_vtc_panic
)
VCL_VOID
v_matchproto_
(
td_vtc_panic
)
vmod_panic
(
VRT_CTX
,
const
char
*
str
,
...
)
vmod_panic
(
VRT_CTX
,
VCL_STRANDS
str
)
{
{
va_list
ap
;
const
char
*
b
;
const
char
*
b
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
va_start
(
ap
,
str
);
b
=
VRT_StrandsWS
(
ctx
->
ws
,
"PANIC:"
,
str
);
b
=
VRT_String
(
ctx
->
ws
,
"PANIC: "
,
str
,
ap
);
va_end
(
ap
);
VAS_Fail
(
"VCL"
,
""
,
0
,
b
,
VAS_VCL
);
VAS_Fail
(
"VCL"
,
""
,
0
,
b
,
VAS_VCL
);
}
}
...
...
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