fix(client): prevent a checkout loop of pooled connections that aren't ready yet

This commit is contained in:
Sean McArthur
2018-04-30 14:06:12 -07:00
parent 11c92ff467
commit 5e3b43af09
4 changed files with 30 additions and 29 deletions

View File

@@ -88,7 +88,7 @@ fn conn_reset_after_write() {
}
// sleep to allow some time for the connection to return to the pool
thread::sleep(Duration::from_secs(1));
thread::sleep(Duration::from_millis(50));
let req = Request::builder()
.uri("http://mock.local/a")