From 4fa762b5ce977b2ed245ecdebfd8c0bd618e26d7 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 16 May 2018 15:51:31 +0200 Subject: [PATCH] Propagation: Connection closed is a normal error #6516 Because it sometimes appears in conjunction with server bugs and we don't want to halt all syncing for other files in these cases. --- src/libsync/owncloudpropagator_p.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libsync/owncloudpropagator_p.h b/src/libsync/owncloudpropagator_p.h index eb4a0e1811..4983e570ad 100644 --- a/src/libsync/owncloudpropagator_p.h +++ b/src/libsync/owncloudpropagator_p.h @@ -64,6 +64,12 @@ inline SyncFileItem::Status classifyError(QNetworkReply::NetworkError nerror, { Q_ASSERT(nerror != QNetworkReply::NoError); // we should only be called when there is an error + if (nerror == QNetworkReply::RemoteHostClosedError) { + // Sometimes server bugs lead to a connection close on certain files, + // that shouldn't bring the rest of the syncing to a halt. + return SyncFileItem::NormalError; + } + if (nerror > QNetworkReply::NoError && nerror <= QNetworkReply::UnknownProxyError) { // network error or proxy error -> fatal return SyncFileItem::FatalError;