From d47603615f52fad205dc739825a250ca371422ed Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 18 Aug 2020 22:50:29 +0200 Subject: [PATCH] Downloader::post() timeouts should not keep the socket connected for reuse --- lib/downloader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/downloader.cpp b/lib/downloader.cpp index 3bf260b4..8c07c2e2 100644 --- a/lib/downloader.cpp +++ b/lib/downloader.cpp @@ -429,6 +429,7 @@ namespace HTTP{ } if (getSocket()){ FAIL_MSG("Timeout while retrieving %s", link.getUrl().c_str()); + getSocket().close(); return false; } Util::sleep(500); // wait a bit before retrying