-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset stalled state in upload data after retrying #32283
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32283 +/- ##
=========================================
Coverage 64.01% 64.01%
Complexity 18559 18559
=========================================
Files 1171 1171
Lines 69834 69834
Branches 1267 1267
=========================================
Hits 44706 44706
Misses 24758 24758
Partials 370 370
Continue to review full report at Codecov.
|
7e00f96
to
c530975
Compare
added unit test |
|
@@ -1124,6 +1125,7 @@ OC.Uploader.prototype = _.extend({ | |||
}); | |||
|
|||
// clear the previous data: | |||
upload.data.stalled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, this makes sense
@@ -854,7 +854,8 @@ OC.Uploader.prototype = _.extend({ | |||
if (progress >= total) { | |||
// change message if we stalled at 100% | |||
this.$uploadprogressbar.find('.label .desktop').text(t('core', 'Processing files...')); | |||
} else if (new Date().getTime() - this._lastProgressTime >= this._uploadStallTimeout * 1000 ) { | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ... yes also makes sense
…ad-flag Reset stalled state in upload data after retrying
[stable10] Merge pull request #32283 from owncloud/reset-stalled-uplo…
Backport |
Description
After retrying a chunk, we need to reset the upload object's "stalled" state, else the next stalled chunk is not retried.
Related Issue
Fixes #32282
Motivation and Context
How Has This Been Tested?
See steps in original ticket as it needs patching
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: