Introduce minor delay between sends on HTTPU.
This commit is contained in:
1 parent
407136030e
commit
9bddaed1e9
1 file changed
+1
@@ -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",
|
return nil, fmt.Errorf("httpu: wrote %d bytes rather than full %d in request",
|
||||||
n, len(requestBuf.Bytes()))
|
n, len(requestBuf.Bytes()))
|
||||||
}
|
}
|
||||||
|
time.Sleep(10 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Await responses until timeout.
|
// Await responses until timeout.
|
||||||
|
|||||||
Reference in new issue
Block a user