sigh. add sleep for now to avoid connection reset by peer issues

This commit is contained in:
Naitik Shah 2013-10-24 15:22:03 -07:00
parent 4636466d77
commit d2b7f5f03a

View File

@ -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{