r4632 - trunk/varnish-cache/bin/varnishtest/tests
phk at varnish-cache.org
phk at varnish-cache.org
Thu Mar 18 12:14:36 CET 2010
Author: phk
Date: 2010-03-18 12:14:36 +0100 (Thu, 18 Mar 2010)
New Revision: 4632
Added:
trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc
Log:
Regression test for #667
Added: trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc 2010-03-18 11:14:36 UTC (rev 4632)
@@ -0,0 +1,42 @@
+# $Id$
+
+test "things stuck on busy object"
+
+server s1 {
+ rxreq
+ sema r1 sync 2
+ delay 1
+ # There is a race in varnish between the first request releasing
+ # the backend connection, and the second request trying to get it
+ # which makes reuse of backend connection sometimes work and
+ # sometimes not. Solve by never reusing the backend connection.
+ txresp -hdr "Connection: close" -bodylen 2
+ expect_close
+ accept
+ rxreq
+ txresp -bodylen 5
+} -start
+
+
+varnish v1 -vcl+backend {
+ sub vcl_fetch {
+ set beresp.cacheable = false;
+ }
+} -start
+
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.bodylen == 2
+} -start
+
+client c2 {
+ sema r1 sync 2
+ txreq
+ rxresp
+ expect resp.bodylen == 5
+} -start
+
+client c1 -wait
+client c2 -wait
Property changes on: trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the varnish-commit
mailing list