1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-28 15:57:47 +02:00

fix http/2 support

This commit is contained in:
Nikolay Kim
2017-12-31 13:22:11 -08:00
parent 73e2773a10
commit 967d3244d7
5 changed files with 43 additions and 37 deletions

View File

@@ -576,12 +576,10 @@ impl<S, H> ProcessResponse<S, H> {
{
if self.drain.is_none() && self.running != RunningState::Paused {
// if task is paused, write buffer is probably full
loop {
let result = match mem::replace(&mut self.iostate, IOState::Done) {
IOState::Response => {
let result = match io.start(info.req_mut().get_inner(),
&mut self.resp) {
let result = match io.start(info.req_mut().get_inner(), &mut self.resp) {
Ok(res) => res,
Err(err) => {
info.error = Some(err.into());