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
827cd226
Commit
827cd226
authored
Oct 09, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use monotonic time for the watchdog
parent
4dcb8fb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cache_wrk.c
bin/varnishd/cache/cache_wrk.c
+4
-4
No files found.
bin/varnishd/cache/cache_wrk.c
View file @
827cd226
...
...
@@ -489,7 +489,7 @@ pool_herder(void *priv)
double
delay
;
int
wthread_min
;
uintmax_t
dq
=
(
1ULL
<<
31
);
double
dqt
=
0
;
vtim_mono
dqt
=
0
;
CAST_OBJ_NOTNULL
(
pp
,
priv
,
POOL_MAGIC
);
...
...
@@ -514,11 +514,11 @@ pool_herder(void *priv)
dq
=
pp
->
ndequeued
+
1
;
}
else
if
(
dq
!=
pp
->
ndequeued
)
{
dq
=
pp
->
ndequeued
;
dqt
=
VTIM_
real
();
}
else
if
(
VTIM_
real
()
-
dqt
>
cache_param
->
wthread_watchdog
)
{
dqt
=
VTIM_
mono
();
}
else
if
(
VTIM_
mono
()
-
dqt
>
cache_param
->
wthread_watchdog
)
{
VSL
(
SLT_Error
,
0
,
"Pool Herder: Queue does not move ql=%u dt=%f"
,
pp
->
lqueue
,
VTIM_
real
()
-
dqt
);
pp
->
lqueue
,
VTIM_
mono
()
-
dqt
);
WRONG
(
"Worker Pool Queue does not move"
);
}
wthread_min
=
cache_param
->
wthread_min
;
...
...
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