From deb7d070b2be0d078b43a86bbf5a0e51764c6687 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 3 Feb 2022 05:34:25 +0000 Subject: [PATCH] add back can_not_read bail --- actix-http/src/h1/dispatcher.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index 25dca5bcf..fbc7e5b99 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -696,7 +696,6 @@ where if can_not_read { log::debug!("cannot read request payload"); - // if we cannot read request payload... if let Some(sender) = &this.payload { // ...maybe handler does not want to read any more payload... if let PayloadStatus::Dropped = sender.need_read(cx) { @@ -750,6 +749,9 @@ where } } } + } else { + // can_not_read and no request payload + return Ok(false); } }