fix(client): try to reuse connections when pool checkout wins

If a checkout wins, meaning an idle connection became available before
a connect future completed, instead of just dropping the connect future,
it spawns it into the background executor to allow being placed into
the pool on completion.
This commit is contained in:
Sean McArthur
2018-06-28 12:43:56 -07:00
committed by GitHub
parent 1f95f58837
commit f2d464ac79
6 changed files with 314 additions and 37 deletions

View File

@@ -1,8 +1,10 @@
mod buf;
mod exec;
pub(crate) mod io;
mod lazy;
mod never;
pub(crate) use self::buf::StaticBuf;
pub(crate) use self::exec::Exec;
pub(crate) use self::lazy::lazy;
pub use self::never::Never;