sigh. add sleep for now to avoid connection reset by peer issues
This commit is contained in:
parent
4636466d77
commit
d2b7f5f03a
@ -173,7 +173,10 @@ func (h *harness) SendOne(dialgroup *sync.WaitGroup, url string, pid int) {
|
||||
Transport: &http.Transport{
|
||||
DisableKeepAlives: true,
|
||||
Dial: func(network, addr string) (net.Conn, error) {
|
||||
defer dialgroup.Done()
|
||||
defer func() {
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
dialgroup.Done()
|
||||
}()
|
||||
return net.Dial(network, addr)
|
||||
},
|
||||
TLSClientConfig: &tls.Config{
|
||||
|
Loading…
Reference in New Issue
Block a user