mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
Be a little more generous with HTTP timeouts
This commit is contained in:
parent
f1e241940b
commit
5a46cf1d48
@ -53,12 +53,12 @@ func TestStressHTTP(t *testing.T) {
|
|||||||
tr := &http.Transport{
|
tr := &http.Transport{
|
||||||
TLSClientConfig: tc,
|
TLSClientConfig: tc,
|
||||||
DisableKeepAlives: true,
|
DisableKeepAlives: true,
|
||||||
ResponseHeaderTimeout: time.Second,
|
ResponseHeaderTimeout: 10 * time.Second,
|
||||||
TLSHandshakeTimeout: time.Second,
|
TLSHandshakeTimeout: 10 * time.Second,
|
||||||
}
|
}
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Transport: tr,
|
Transport: tr,
|
||||||
Timeout: 2 * time.Second,
|
Timeout: 10 * time.Second,
|
||||||
}
|
}
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
t0 := time.Now()
|
t0 := time.Now()
|
||||||
|
Loading…
Reference in New Issue
Block a user