r5413 - trunk/varnish-cache/bin/varnishtest/tests

phk at varnish-cache.org phk at varnish-cache.org
Tue Oct 5 21:35:18 CEST 2010


Author: phk
Date: 2010-10-05 21:35:16 +0200 (Tue, 05 Oct 2010)
New Revision: 5413

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc
Log:
Use a semphore instead of a delay



Modified: trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc	2010-10-05 19:34:46 UTC (rev 5412)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00667.vtc	2010-10-05 19:35:16 UTC (rev 5413)
@@ -5,13 +5,12 @@
 server s1 {
 	rxreq
 	sema r1 sync 2
-	delay 1
+	sema r1 sync 2
 	# 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
@@ -34,6 +33,7 @@
 client c2 {
 	sema r1 sync 2
 	txreq
+	sema r1 sync 2
 	rxresp
 	expect resp.bodylen == 5
 } -start




More information about the varnish-commit mailing list