]> err.no Git - varnish/commitdiff
Testcase for the poll acceptor
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 11:17:03 +0000 (11:17 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 11:17:03 +0000 (11:17 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2827 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/b00009.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/b00009.vtc b/varnish-cache/bin/varnishtest/tests/b00009.vtc
new file mode 100644 (file)
index 0000000..b6c38e8
--- /dev/null
@@ -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