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.
This commit is contained in:
Ismo Toijala 2020-12-30 11:36:38 +02:00
parent 5c64fc3074
commit 3bc9efef6c

View File

@ -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"