0452af
From eaf1d768085a924a5322cfc77439ba5a4945bbae Mon Sep 17 00:00:00 2001
0452af
From: Ryan O'Hara <rohara@redhat.com>
0452af
Date: Thu, 14 Oct 2021 14:08:39 -0500
0452af
Subject: [PATCH] Fix short HTTP responses to client
0452af
0452af
---
0452af
 src/raw_sock.c | 2 +-
0452af
 1 file changed, 1 insertion(+), 1 deletion(-)
0452af
0452af
diff --git a/src/raw_sock.c b/src/raw_sock.c
0452af
index ad0210105..fbf20ae35 100644
0452af
--- a/src/raw_sock.c
0452af
+++ b/src/raw_sock.c
0452af
@@ -302,7 +302,7 @@ static int raw_sock_to_buf(struct connection *conn, struct buffer *buf, int coun
0452af
 		if (ret > 0) {
0452af
 			buf->i += ret;
0452af
 			done += ret;
0452af
-			if (ret < try) {
0452af
+			if (0 && ret < try) {
0452af
 				/* unfortunately, on level-triggered events, POLL_HUP
0452af
 				 * is generally delivered AFTER the system buffer is
0452af
 				 * empty, unless the poller supports POLL_RDHUP. If
0452af
-- 
0452af
2.31.1
0452af