From: phk Date: Tue, 17 Jun 2008 07:32:43 +0000 (+0000) Subject: allow delays in http procssing (client & server) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19f25ac012c1e0faaed4a84cca599a48a59126ba;p=varnish allow delays in http procssing (client & server) git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2715 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/t001.vtc b/varnish-cache/bin/varnishtest/t001.vtc index 4fd00402..a55d2d11 100644 --- a/varnish-cache/bin/varnishtest/t001.vtc +++ b/varnish-cache/bin/varnishtest/t001.vtc @@ -4,20 +4,16 @@ varnish v1 -launch -delay 1 - varnish v1 -vcl { backend s1 { .host = "localhost"; .port = "9080"; } - vcl_recv { + sub vcl_recv { pipe; } } -delay 1 - varnish v1 -start server s1 -repeat 1 { diff --git a/varnish-cache/bin/varnishtest/vtc_http.c b/varnish-cache/bin/varnishtest/vtc_http.c index 768589b4..75c3d3e9 100644 --- a/varnish-cache/bin/varnishtest/vtc_http.c +++ b/varnish-cache/bin/varnishtest/vtc_http.c @@ -465,6 +465,7 @@ static struct cmds http_cmds[] = { { "txresp", cmd_http_txresp }, { "rxresp", cmd_http_rxresp }, { "expect", cmd_http_expect }, + { "delay", cmd_delay }, { NULL, NULL } };