Skip to content

Commit 0ef5be3

Browse files
committed
Galaxy: Skip file when chunk fails after retry count is reached
Also change message level of chunk failure to default from verbose because the user should be informed about this by default
1 parent 1cbc227 commit 0ef5be3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/downloader.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4791,6 +4791,13 @@ void Downloader::processGalaxyDownloadQueue(const std::string& install_path, Con
47914791
curl_easy_setopt(dlhandle, CURLOPT_NOPROGRESS, 0);
47924792
curl_easy_setopt(dlhandle, CURLOPT_FILETIME, 0L);
47934793

4794+
if (bShouldRetry)
4795+
{
4796+
bChunkFailure = true;
4797+
free(chunk.memory);
4798+
break;
4799+
}
4800+
47944801
if (result != CURLE_OK)
47954802
{
47964803
msgQueue.push(Message(std::string(curl_easy_strerror(result)), MSGTYPE_ERROR, msg_prefix, MSGLEVEL_VERBOSE));
@@ -4829,7 +4836,7 @@ void Downloader::processGalaxyDownloadQueue(const std::string& install_path, Con
48294836

48304837
if (bChunkFailure)
48314838
{
4832-
msgQueue.push(Message(path.string() + ": Chunk failure, skipping file", MSGTYPE_ERROR, msg_prefix, MSGLEVEL_VERBOSE));
4839+
msgQueue.push(Message(path.string() + ": Chunk failure, skipping file", MSGTYPE_ERROR, msg_prefix, MSGLEVEL_DEFAULT));
48334840
continue;
48344841
}
48354842

0 commit comments

Comments
 (0)