[4.0] 873a6a0 Default the http timeout to half of the total testduration.

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:23 CEST 2014


commit 873a6a03c71cdd64681d5a78a4a0100eb158914e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jul 31 09:49:04 2014 +0000

    Default the http timeout to half of the total testduration.
    
    Fixes #1563

diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 28b7340..f2998d4 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -1227,7 +1227,7 @@ http_process(struct vtclog *vl, const char *spec, int sock, int *sfd)
 	ALLOC_OBJ(hp, HTTP_MAGIC);
 	AN(hp);
 	hp->fd = sock;
-	hp->timeout = 15000;
+	hp->timeout = vtc_maxdur * 1000 / 2;
 	hp->nrxbuf = 2048*1024;
 	hp->vsb = VSB_new_auto();
 	hp->rxbuf = malloc(hp->nrxbuf);		/* XXX */



More information about the varnish-commit mailing list