From 79d8a3b6f374f52ebcb957d1f53024dadf55096f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Thu, 25 Apr 2024 22:31:02 +0200 Subject: [PATCH] http: don't always close connection after sending error response --- crates/http/src/workers/socket/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/http/src/workers/socket/connection.rs b/crates/http/src/workers/socket/connection.rs index 787440c..c277ffc 100644 --- a/crates/http/src/workers/socket/connection.rs +++ b/crates/http/src/workers/socket/connection.rs @@ -171,7 +171,7 @@ where self.write_response(&response, peer_addr).await?; - if matches!(response, Response::Failure(_)) || !self.config.network.keep_alive { + if !self.config.network.keep_alive { break; } }