From 686cdbc165ff6e1acdcbdbf6d932329f525c86a3 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Tue, 28 May 2019 14:41:58 +0200 Subject: [PATCH] Don't DISCONNECT from stream when reader is empty --- actix-http/src/h1/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index 131811a9e..ab2e44696 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -799,7 +799,7 @@ where match read { Ok(n) => { if n == 0 { - return Ok(Some(true)); + return Ok(Some(false)); } else { read_some = true; unsafe {