fix(client): ensure idle connection is pooled before response body finishes

This commit is contained in:
Sean McArthur
2018-04-03 14:25:39 -07:00
parent 06405c2c49
commit 7c12a2cde3
4 changed files with 105 additions and 18 deletions

View File

@@ -128,6 +128,10 @@ impl<B> SendRequest<B>
self.dispatch.poll_ready(cx)
}
pub(super) fn is_ready(&self) -> bool {
self.dispatch.is_ready()
}
pub(super) fn is_closed(&self) -> bool {
self.dispatch.is_closed()
}