Introduce minor delay between sends on HTTPU.

This commit is contained in:
John Beisley 2013-09-28 11:26:18 +01:00
parent 407136030e
commit 9bddaed1e9

View File

@ -67,6 +67,7 @@ func (httpu *HTTPUClient) Do(req *http.Request, timeout time.Duration, numSends
return nil, fmt.Errorf("httpu: wrote %d bytes rather than full %d in request",
n, len(requestBuf.Bytes()))
}
time.Sleep(10 * time.Millisecond)
}
// Await responses until timeout.