mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-19 04:15:38 +02:00
fix name
This commit is contained in:
@@ -252,7 +252,7 @@ impl<T, A, H> Http1<T, A, H>
|
|||||||
// check for parse error
|
// check for parse error
|
||||||
if self.tasks.is_empty() {
|
if self.tasks.is_empty() {
|
||||||
if self.h2 {
|
if self.h2 {
|
||||||
return Ok(Async::Ready(Http1Result::Upgrade))
|
return Ok(Async::Ready(Http1Result::Switch))
|
||||||
}
|
}
|
||||||
if self.error || self.keepalive_timer.is_none() {
|
if self.error || self.keepalive_timer.is_none() {
|
||||||
return Ok(Async::Ready(Http1Result::Done))
|
return Ok(Async::Ready(Http1Result::Done))
|
||||||
|
@@ -190,12 +190,13 @@ impl Task {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// use exiting frames
|
// if task is paused, write buffer probably is full
|
||||||
if self.state != TaskRunningState::Paused {
|
if self.state != TaskRunningState::Paused {
|
||||||
|
// process exiting frames
|
||||||
while let Some(frame) = self.frames.pop_front() {
|
while let Some(frame) = self.frames.pop_front() {
|
||||||
trace!("IO Frame: {:?}", frame);
|
trace!("IO Frame: {:?}", frame);
|
||||||
let res = match frame {
|
let res = match frame {
|
||||||
Frame::Message(mut response) => {
|
Frame::Message(response) => {
|
||||||
trace!("Prepare message status={:?}", response.status);
|
trace!("Prepare message status={:?}", response.status);
|
||||||
|
|
||||||
// run middlewares
|
// run middlewares
|
||||||
|
Reference in New Issue
Block a user