From 3bc9efef6c6f2f5abc8229c82f177c67ca02ff68 Mon Sep 17 00:00:00 2001 From: Ismo Toijala Date: Wed, 30 Dec 2020 11:36:38 +0200 Subject: [PATCH] Retry download also on CURLE_SSL_CONNECT_ERROR Sometimes the download fails with CURLE_SSL_CONNECT_ERROR and retrying is successful. Sometimes multiple retries are needed, but that is already handled by the existing code. --- src/downloader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/downloader.cpp b/src/downloader.cpp index 9d42b9a..4fae33d 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2804,6 +2804,7 @@ void Downloader::processDownloadQueue(Config conf, const unsigned int& tid) case CURLE_PARTIAL_FILE: case CURLE_OPERATION_TIMEDOUT: case CURLE_RECV_ERROR: + case CURLE_SSL_CONNECT_ERROR: bShouldRetry = true; break; // Retry on CURLE_HTTP_RETURNED_ERROR if response code is not "416 Range Not Satisfiable"