[experimental-ims] b38682b 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.

Geoff Simmons geoff at varnish-cache.org
Wed Aug 31 16:02:11 CEST 2011


commit b38682bb5aa5d36c856a634e121b15c0994c4fa6
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