From 7998c2051f4374c9bcaeab54a2d5d7b0f8d59e33 Mon Sep 17 00:00:00 2001 From: Kevin Rauwolf Date: Fri, 10 Jun 2022 17:09:53 -0700 Subject: [PATCH] Removed extra read, since it hangs the worker #2764 --- actix-http/src/h1/dispatcher.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index e2ab1f3c7..b0792f611 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -706,9 +706,6 @@ where debug!("handler dropped payload early; attempt to clean connection"); // ...in which case poll request payload a few times loop { - if this.read_buf.is_empty() { - Self::read_available_projected(&mut this, cx)?; - } match this.codec.decode(this.read_buf)? { Some(msg) => { match msg {