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
ccc2005d
Commit
ccc2005d
authored
Mar 21, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discover failure to execute varnishd faster
parent
54e060c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+5
-3
No files found.
bin/varnishtest/vtc_varnish.c
View file @
ccc2005d
...
...
@@ -339,8 +339,10 @@ varnish_thread(void *priv)
i
=
poll
(
fds
,
1
,
1000
);
if
(
i
==
0
)
continue
;
if
(
fds
->
revents
&
(
POLLERR
|
POLLHUP
))
if
(
fds
->
revents
&
(
POLLERR
|
POLLHUP
))
{
vtc_log
(
v
->
vl
,
4
,
"STDOUT poll 0x%x"
,
fds
->
revents
);
break
;
}
i
=
read
(
v
->
fds
[
0
],
buf
,
sizeof
buf
-
1
);
if
(
i
<=
0
)
break
;
...
...
@@ -426,8 +428,8 @@ varnish_launch(struct varnish *v)
memset
(
fd
,
0
,
sizeof
fd
);
fd
[
0
].
fd
=
v
->
cli_fd
;
fd
[
0
].
events
=
POLLIN
;
fd
[
1
].
fd
=
v
->
fds
[
0
];
fd
[
1
].
events
=
0
;
/* Only care about POLLHUP, which is output-only */
fd
[
1
].
fd
=
v
->
fds
[
1
];
fd
[
1
].
events
=
POLLIN
;
i
=
poll
(
fd
,
2
,
10000
);
vtc_log
(
v
->
vl
,
4
,
"CLIPOLL %d 0x%x 0x%x"
,
i
,
fd
[
0
].
revents
,
fd
[
1
].
revents
);
...
...
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