[BugFix:
enhance upload progress check.
@@ -209,7 +209,8 @@ public class UploadImageTracker {
return true;
}
- if (overMaxIdleTime(reply.getLastOpTime()) && reply.isSupportSuspend()) {
+ boolean downloadingImageSuspendedTooLong = reply.getDownloadSize() < reply.getSize() && overMaxIdleTime(reply.getLastOpTime()) ;
+ if (downloadingImageSuspendedTooLong && reply.isSupportSuspend()) {
markFailure(err(ImageErrors.UPLOAD_IMAGE_INTERRUPTED, reply.getError(),
"uploading has been inactive more than %d sec", maxIdleSecond));
return true;
