r2760 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Sat Jun 21 20:57:44 CEST 2008
Author: phk
Date: 2008-06-21 20:57:44 +0200 (Sat, 21 Jun 2008)
New Revision: 2760
Added:
trunk/varnish-cache/bin/varnishtest/tests/r00255.vtc
Log:
Regression test case for ticket 255
Added: trunk/varnish-cache/bin/varnishtest/tests/r00255.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00255.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00255.vtc 2008-06-21 18:57:44 UTC (rev 2760)
@@ -0,0 +1,28 @@
+# $Id$
+
+test "Regression test for #255: Segfault on header token separation"
+
+server s1 {
+ rxreq
+ txresp \
+ -hdr "Date: Thu, 19 Jun 2008 21:14:49 GMT" \
+ -hdr "Content-Length: 7" \
+ -hdr "Expires: Thu, 19 Jun 2008 21:14:49 GMT" \
+ -hdr "Last-Modified: Sun, 27 Nov 2005 05:41:47 GMT" \
+ -hdr "Cache-Control: max-age =0" \
+ -body "012345\n"
+}
+
+varnish v1 -vcl+backend { sub vcl_recv {set req.backend = s1;} } -start
+
+server s1 -start
+
+client c1 {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 200
+ expect resp.http.X-Varnish == "1001"
+ expect resp.http.Cache-Control == "max-age =0"
+}
+
+client c1 -run
More information about the varnish-commit
mailing list