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
a8b56df3
Commit
a8b56df3
authored
Feb 25, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a debug option to slow down acceptor threads so that we
can stabilize test c00080.
parent
b4a959ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
cache_acceptor.c
bin/varnishd/cache/cache_acceptor.c
+2
-0
c00080.vtc
bin/varnishtest/tests/c00080.vtc
+3
-17
debug_bits.h
include/tbl/debug_bits.h
+1
-0
No files found.
bin/varnishd/cache/cache_acceptor.c
View file @
a8b56df3
...
...
@@ -466,6 +466,8 @@ vca_accept_task(struct worker *wrk, void *arg)
TASK_QUEUE_VCA
));
return
;
}
if
(
!
ps
->
pool
->
die
&&
DO_DEBUG
(
DBG_SLOW_ACCEPTOR
))
VTIM_sleep
(
2
.
0
);
/*
* We were able to hand off, so release this threads VCL
...
...
bin/varnishtest/tests/c00080.vtc
View file @
a8b56df3
...
...
@@ -8,33 +8,19 @@ server s1 {
varnish v1 -vcl+backend {} -start
varnish v1 -cliok "param.set debug +drop_pools"
varnish v1 -cliok "param.set debug +slow_acceptor"
varnish v1 -cliok "param.set thread_pools 1"
delay 2
client c1 {
client c1
-repeat 2
{
txreq
rxresp
} -run
varnish v1 -vsc *poo*
delay 2
client c1 {
txreq
rxresp
} -run
varnish v1 -vsc *poo*
delay 2
client c1 {
txreq
rxresp
} -run
varnish v1 -vsc *thr*
varnish v1 -vsc *poo*
varnish v1 -expect MAIN.pools == 1
...
...
include/tbl/debug_bits.h
View file @
a8b56df3
...
...
@@ -45,6 +45,7 @@ DEBUG_BIT(VTC_MODE, vtc_mode, "Varnishtest Mode")
DEBUG_BIT
(
WITNESS
,
witness
,
"Emit WITNESS lock records"
)
DEBUG_BIT
(
VSM_KEEP
,
vsm_keep
,
"Keep the VSM file on restart"
)
DEBUG_BIT
(
DROP_POOLS
,
drop_pools
,
"Drop thread pools (testing)"
)
DEBUG_BIT
(
SLOW_ACCEPTOR
,
slow_acceptor
,
"Slow down Acceptor"
)
#undef DEBUG_BIT
/*lint -restore */
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