Skip to content

上传中,切换网络或者断网,没有失败回调 #490

@kelthuzad13

Description

@kelthuzad13

uploadManager 是全局单例

 private val qiniuUploadManager: UploadManager by lazy {
        UploadManager(
            Configuration.Builder()
                .resumeUploadVersion(Configuration.RESUME_UPLOAD_VERSION_V2)
                .useConcurrentResumeUpload(true)
                .concurrentTaskCount(3)
                .connectTimeout(10)
                .responseTimeout(10)
                .build()
        )
    }

使用的 sdk 是 8.4.4 版本

implementation('com.qiniu:qiniu-android-sdk:8.4.4') {
        exclude(group: 'com.squareup.okhttp3', module: 'okhttp')
    }

在 UpProgressHandler 已经有进度回调时,断开网络时(测试反馈是 Wi-Fi 切换 4g,开发场景是断开网络),连接超时没有 UpCompletionHandler 的回调。

升级到 8.5.0 之后,相同的操作步骤,会在断开网络后, com.qiniu.android.dns.dns.DohResolver 间隔 3 秒无限重试,没有失败的出口回调。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions