From 325c7b8e8bd88348fcba7339006368ba78369b83 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Apr 2019 23:24:44 +0200 Subject: [PATCH] output/httpd: close client connection on error This missing piece probably never really hurt, because HttpdClient::OnSocketClosed() would be called right after a socket error, but it's better to be explicit about closing on error. --- src/output/plugins/httpd/HttpdClient.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/output/plugins/httpd/HttpdClient.cxx b/src/output/plugins/httpd/HttpdClient.cxx index 205689462..db602b955 100644 --- a/src/output/plugins/httpd/HttpdClient.cxx +++ b/src/output/plugins/httpd/HttpdClient.cxx @@ -428,6 +428,7 @@ void HttpdClient::OnSocketError(std::exception_ptr ep) noexcept { LogError(ep); + LockClose(); } void