From 16e97e9b151ca775327868fbbd2883d1e8c7ef1f Mon Sep 17 00:00:00 2001 From: Igor Gaponenko Date: Mon, 22 Jan 2024 19:48:28 +0000 Subject: [PATCH] Enabled socket reuse in qhttp to complement client connection sharing This fixes a problem reported in https://jira.lsstcorp.org/browse/DM-27396 --- src/qhttp/Server.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/qhttp/Server.cc b/src/qhttp/Server.cc index 254f3dabd..292c0bd31 100644 --- a/src/qhttp/Server.cc +++ b/src/qhttp/Server.cc @@ -235,10 +235,7 @@ void Server::_readRequest(std::shared_ptr socket) { } if (request->version == "HTTP/1.1") { - // Temporary disable this option due to a bug in the implementation - // causing disconnect if running the service within the Docker environment. - // See: DM-27396 - //*reuseSocket = true; + *reuseSocket = true; } if (request->header.count("Content-Length") > 0) {