[master] 62d4ce7 Also try to ditch thread pool with poll waiter

Poul-Henning Kamp phk at FreeBSD.org
Wed Mar 1 22:21:05 CET 2017


commit 62d4ce791fc9399f579ee129c57b8d6de60cf27c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 1 21:20:02 2017 +0000

    Also try to ditch thread pool with poll waiter

diff --git a/bin/varnishtest/tests/c00080.vtc b/bin/varnishtest/tests/c00080.vtc
index b231b69..5a50fff 100644
--- a/bin/varnishtest/tests/c00080.vtc
+++ b/bin/varnishtest/tests/c00080.vtc
@@ -1,5 +1,7 @@
 varnishtest "Deconfigure thread pool"
 
+# First with default waiter
+
 server s1 {
 	rxreq
 	txresp
@@ -29,3 +31,33 @@ client c1 {
 	rxresp
 } -run
 
+# Then with poll waiter
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v2 -arg "-Wpoll" -vcl+backend {} -start
+
+varnish v2 -cliok "param.set debug +drop_pools"
+varnish v2 -cliok "param.set debug +slow_acceptor"
+varnish v2 -cliok "param.set thread_pools 1"
+
+delay 2
+
+client c2 -connect ${v2_sock} -repeat 2 {
+	txreq
+	rxresp
+} -run
+
+delay 2
+
+varnish v2 -vsc *thr*
+varnish v2 -vsc *poo*
+varnish v2 -expect MAIN.pools == 1
+
+client c2 -connect ${v2_sock} {
+	txreq
+	rxresp
+} -run



More information about the varnish-commit mailing list