Get TestDownload to pass
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 24 Nov 2020 14:01:07 +0000 (15:01 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:57:51 +0000 (10:57 +0100)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/abstractnetworkjob.cpp

index e89fed479a8c7a5dd12fe3c6451a3df7daa8785e..0168c90532be99b38b782e177323bf1ac9df7e7a 100644 (file)
@@ -161,7 +161,7 @@ void AbstractNetworkJob::slotFinished()
 
 #if (QT_VERSION >= 0x050800)
     // Qt doesn't yet transparently resend HTTP2 requests, do so here
-    const auto maxHttp2Resends = 5;
+    const auto maxHttp2Resends = 3;
     QByteArray verb = requestVerb(*reply());
     if (_reply->error() == QNetworkReply::ContentReSendError
         && _reply->attribute(QNetworkRequest::HTTP2WasUsedAttribute).toBool()) {