mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 09:59:21 +02:00
flush io on complete
This commit is contained in:
@ -337,9 +337,10 @@ impl<T: AsyncWrite, H: 'static> Writer for H1Writer<T, H> {
|
||||
}
|
||||
}
|
||||
if shutdown {
|
||||
self.stream.poll_flush()?;
|
||||
self.stream.shutdown()
|
||||
} else {
|
||||
Ok(Async::Ready(()))
|
||||
self.stream.poll_flush()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user