Blame SOURCES/rhbz1941446-fix-short-http-responses.patch

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