Introduce minor delay between sends on HTTPU.
This commit is contained in:
parent
407136030e
commit
9bddaed1e9
1
httpu.go
1
httpu.go
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user