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