From e6ec8bf145b9c0094e2006ab4aea4d6d77a774bb Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 27 Jun 2008 13:09:49 +0000 Subject: [PATCH] test busying subsequent requests on backend access. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2858 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/c00013.vtc | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/c00013.vtc diff --git a/varnish-cache/bin/varnishtest/tests/c00013.vtc b/varnish-cache/bin/varnishtest/tests/c00013.vtc new file mode 100644 index 00000000..b84356c8 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/c00013.vtc @@ -0,0 +1,31 @@ +# $Id$ + +test "Test parking second request on backend delay" + +server s1 { + rxreq + expect req.url == "/foo" + send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n" + delay .5 + send "line1\n" + delay .5 + send "line2\n" +} -start + +varnish v1 -vcl+backend { } -start + +client c1 { + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 12 + expect resp.http.x-varnish == "1001" +} -start +delay .2 +client c2 { + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 12 + expect resp.http.x-varnish == "1002 1001" +} -start -- 2.39.5