From 7d1c720b8422b4aaaa3bea7121e50561aeb9d27d Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 24 Oct 2014 10:01:44 +0200 Subject: [PATCH] Slightly more robust HTTP stress test --- test/httpstress_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/httpstress_test.go b/test/httpstress_test.go index d2fa35f2..61529a8a 100644 --- a/test/httpstress_test.go +++ b/test/httpstress_test.go @@ -51,7 +51,10 @@ func TestStressHTTP(t *testing.T) { tc := &tls.Config{InsecureSkipVerify: true} tr := &http.Transport{ - TLSClientConfig: tc, + TLSClientConfig: tc, + DisableKeepAlives: true, + ResponseHeaderTimeout: time.Second, + TLSHandshakeTimeout: time.Second, } client := &http.Client{ Transport: tr,