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
00f70d05
Commit
00f70d05
authored
Aug 24, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
ccac543e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+4
-4
No files found.
bin/varnishtest/vtc_varnish.c
View file @
00f70d05
...
...
@@ -79,7 +79,7 @@ struct varnish {
struct
vsm
*
vd
;
/* vsc use */
struct
vsm
*
vdl
;
/* log use */
int
has_a_arg
;
struct
vsm_fantom
mgt_arg_i
;
struct
vsm_fantom
vf
;
unsigned
vsl_tag_count
[
256
];
...
...
@@ -534,7 +534,7 @@ varnish_launch(struct varnish *v)
v
->
vd
=
VSM_New
();
(
void
)
VSM_n_Arg
(
v
->
vd
,
v
->
workdir
);
AZ
(
VSM_Start
(
v
->
vd
,
vtc_maxdur
,
-
1
));
assert
(
VSM_Get
(
v
->
vd
,
&
v
->
mgt_arg_i
,
"Arg"
,
"-i"
)
>
0
);
assert
(
VSM_Get
(
v
->
vd
,
&
v
->
vf
,
"Arg"
,
"-i"
)
>
0
);
v
->
vdl
=
VSM_New
();
(
void
)
VSM_n_Arg
(
v
->
vdl
,
v
->
workdir
);
...
...
@@ -855,7 +855,7 @@ varnish_vsc(struct varnish *v, const char *arg)
memset
(
&
dp
,
0
,
sizeof
dp
);
dp
.
v
=
v
;
dp
.
arg
=
arg
;
if
(
VSM_StillValid
(
v
->
vd
,
&
v
->
mgt_arg_i
)
!=
VSM_valid
)
{
if
(
VSM_StillValid
(
v
->
vd
,
&
v
->
vf
)
!=
VSM_valid
)
{
VSM_Close
(
v
->
vd
);
if
(
VSM_Open
(
v
->
vd
)
<
0
)
vtc_fatal
(
v
->
vl
,
"Could not open VSM (%s)"
,
...
...
@@ -926,7 +926,7 @@ varnish_expect(struct varnish *v, char * const *av)
ref
=
0
;
good
=
0
;
for
(
i
=
0
;
i
<
10
;
i
++
,
(
void
)
usleep
(
100000
))
{
if
(
VSM_StillValid
(
v
->
vd
,
&
v
->
mgt_arg_i
)
!=
VSM_valid
)
{
if
(
VSM_StillValid
(
v
->
vd
,
&
v
->
vf
)
!=
VSM_valid
)
{
VSM_Close
(
v
->
vd
);
good
=
VSM_Open
(
v
->
vd
);
}
...
...
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