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

phk at projects.linpro.no phk at projects.linpro.no
Thu Jun 26 14:41:51 CEST 2008


Author: phk
Date: 2008-06-26 14:41:51 +0200 (Thu, 26 Jun 2008)
New Revision: 2835

Added:
   trunk/varnish-cache/bin/varnishtest/tests/b00011.vtc
Log:
Test for HTTP/1.0 (EOF) transmission



Added: trunk/varnish-cache/bin/varnishtest/tests/b00011.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00011.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00011.vtc	2008-06-26 12:41:51 UTC (rev 2835)
@@ -0,0 +1,24 @@
+# $Id$
+
+test "Check HTTP/1.0 EOF transmission"
+
+varnish v1 -arg "-h simple_list -b 127.0.0.1:9080" -start
+
+server s1 {
+	rxreq 
+	txresp -hdr "Connection: close" 
+	send "Body line 1\n"
+	send "Body line 2\n"
+	send "Body line 3\n"
+}
+
+server s1 -start 
+
+client c1 {
+	txreq -url "/"
+	rxresp
+	expect resp.status == 200
+	expect resp.http.content-length == 36
+}
+
+client c1 -run




More information about the varnish-commit mailing list