From 2f738f948f11f47e54993a0f70bd7ff59f73ed62 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 9 Jul 2008 08:14:25 +0000 Subject: [PATCH] Allow modification of the receive timeout git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2907 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_http.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/varnish-cache/bin/varnishtest/vtc_http.c b/varnish-cache/bin/varnishtest/vtc_http.c index 4d49bddb..15147383 100644 --- a/varnish-cache/bin/varnishtest/vtc_http.c +++ b/varnish-cache/bin/varnishtest/vtc_http.c @@ -576,12 +576,28 @@ cmd_http_chunked(CMD_ARGS) http_write(hp, 4, "chunked"); } +/********************************************************************** + * set the timeout + */ + +static void +cmd_http_timeout(CMD_ARGS) +{ + struct http *hp; + + (void)cmd; + CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC); + AN(av[1]); + AZ(av[2]); + hp->timeout = strtof(av[1], NULL) * 1000.0; +} /********************************************************************** * Execute HTTP specifications */ static struct cmds http_cmds[] = { + { "timeout", cmd_http_timeout }, { "txreq", cmd_http_txreq }, { "rxreq", cmd_http_rxreq }, { "txresp", cmd_http_txresp }, -- 2.39.5