diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 936b4eff1..c97f19a88 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -286,6 +286,7 @@ void GETFileJob::slotReadyRead() void GETFileJob::slotTimeout() { + qDebug() << "Timeout" << reply()->request().url(); _errorString = tr("Connection Timeout"); _errorStatus = SyncFileItem::FatalError; reply()->abort(); @@ -402,7 +403,10 @@ void PropagateDownloadFileQNAM::slotGetFinished() qDebug() << Q_FUNC_INFO << job->reply()->request().url() << "FINISHED WITH STATUS" << job->reply()->error() - << (job->reply()->error() == QNetworkReply::NoError ? QLatin1String("") : job->reply()->errorString()); + << (job->reply()->error() == QNetworkReply::NoError ? QLatin1String("") : job->reply()->errorString()) + << _item->_httpErrorCode + << _tmpFile.size() << _item->_size << job->resumeStart() + << job->reply()->rawHeader("Content-Range") << job->reply()->rawHeader("Content-Length"); QNetworkReply::NetworkError err = job->reply()->error(); if (err != QNetworkReply::NoError) { diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp index 7f3577296..3a396260a 100644 --- a/src/libsync/propagateupload.cpp +++ b/src/libsync/propagateupload.cpp @@ -110,6 +110,7 @@ void PUTFileJob::start() { } void PUTFileJob::slotTimeout() { + qDebug() << "Timeout" << reply()->request().url(); _errorString = tr("Connection Timeout"); reply()->abort(); }