Slightly more robust HTTP stress test
This commit is contained in:
parent
51743461ee
commit
7d1c720b84
|
@ -52,6 +52,9 @@ func TestStressHTTP(t *testing.T) {
|
||||||
tc := &tls.Config{InsecureSkipVerify: true}
|
tc := &tls.Config{InsecureSkipVerify: true}
|
||||||
tr := &http.Transport{
|
tr := &http.Transport{
|
||||||
TLSClientConfig: tc,
|
TLSClientConfig: tc,
|
||||||
|
DisableKeepAlives: true,
|
||||||
|
ResponseHeaderTimeout: time.Second,
|
||||||
|
TLSHandshakeTimeout: time.Second,
|
||||||
}
|
}
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Transport: tr,
|
Transport: tr,
|
||||||
|
|
Loading…
Reference in New Issue