[master] 9bce25d Default the http timeout to half of the total testduration.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Jul 31 11:49:42 CEST 2014
commit 9bce25d60fa66c0697309a5e7135d32cc7e469c0
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