1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

start client timeout for response only

This commit is contained in:
Nikolay Kim
2018-04-04 20:15:47 -07:00
parent c1af59c618
commit eeae0ddab4
2 changed files with 25 additions and 19 deletions

View File

@ -69,7 +69,7 @@ impl<T, H> Future for HttpChannel<T, H> where T: IoStream, H: HttpHandler + 'sta
type Error = ();
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
if !self.node.is_none() {
if self.node.is_some() {
let el = self as *mut _;
self.node = Some(Node::new(el));
let _ = match self.proto {