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

phk at projects.linpro.no phk at projects.linpro.no
Thu Jun 26 13:17:03 CEST 2008


Author: phk
Date: 2008-06-26 13:17:03 +0200 (Thu, 26 Jun 2008)
New Revision: 2827

Added:
   trunk/varnish-cache/bin/varnishtest/tests/b00009.vtc
Log:
Testcase for the poll acceptor



Added: trunk/varnish-cache/bin/varnishtest/tests/b00009.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00009.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00009.vtc	2008-06-26 11:17:03 UTC (rev 2827)
@@ -0,0 +1,24 @@
+# $Id$
+
+test "Check poll acceptor"
+
+varnish v1 -arg "-p acceptor=poll -b 127.0.0.1:9080" -start
+
+server s1 {
+	rxreq 
+	txresp -hdr "Connection: close" -body "012345\n"
+}
+
+server s1 -start 
+
+client c1 {
+	txreq -url "/"
+	rxresp
+	expect resp.status == 200
+}
+
+client c1 -run
+
+server s1 -wait
+
+varnish v1 -stop




More information about the varnish-commit mailing list