[3.0] a3af11c Make sure the entire waiting list is rushed when an object goes non-busy. Not sure what I thought when I changed it last, but it was clearly not smart thinking.
Tollef Fog Heen
tfheen at varnish-cache.org
Wed Aug 17 11:27:09 CEST 2011
commit a3af11cd54988b854a3f46a932ec518f9c434692
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Aug 15 20:47:21 2011 +0000
Make sure the entire waiting list is rushed when an object goes
non-busy. Not sure what I thought when I changed it last, but it
was clearly not smart thinking.
Spotted by: Martin
Test case by: Martin
Fixes #963
diff --git a/bin/varnishtest/tests/r00963.vtc b/bin/varnishtest/tests/r00963.vtc
new file mode 100644
index 0000000..6e8fc1d
--- /dev/null
+++ b/bin/varnishtest/tests/r00963.vtc
@@ -0,0 +1,45 @@
+varnishtest "Test hsh_rush"
+
+server s1 {
+ rxreq
+ sema r1 sync 5
+ txresp -bodylen 10
+} -start
+
+varnish v1 -vcl+backend {
+} -start
+
+varnish v1 -cliok "param.set rush_exponent 2"
+
+client c1 {
+ txreq
+ sema r1 sync 5
+ rxresp
+ expect resp.bodylen == 10
+} -start
+
+client c2 {
+ txreq
+ sema r1 sync 5
+ rxresp
+ expect resp.bodylen == 10
+} -start
+
+client c3 {
+ txreq
+ sema r1 sync 5
+ rxresp
+ expect resp.bodylen == 10
+} -start
+
+client c4 {
+ txreq
+ sema r1 sync 5
+ rxresp
+ expect resp.bodylen == 10
+} -start
+
+client c1 -wait
+client c2 -wait
+client c3 -wait
+client c4 -wait
More information about the varnish-commit
mailing list