lingochamp / FileDownloader

Multitask、MultiThread(MultiConnection)、Breakpoint-resume、High-concurrency、Simple to use、Single/NotSingle-process
Apache License 2.0
11.02k stars 2.2k forks source link

超时时间不对 #1379

Open Lloyd0577 opened 3 years ago

Lloyd0577 commented 3 years ago

打开移动数据,但是这张卡是欠费状态,无法连接到网络,设置了15秒超时时间: FileDownloader.setupOnApplicationOnCreate(this) .connectionCreator( FileDownloadUrlConnection.Creator( FileDownloadUrlConnection.Configuration() .connectTimeout(15_000) // set connection timeout. .readTimeout(15_000) // set read timeout. ) ) .commit()

FileDownloader.getImpl().create(fileUrl) .setPath(audioPath) .setListener(downloadlistener) .start()

进行下载时过了15秒没有error回调,有的时候过了很久才会回调,大部分不会回调

tt328307109 commented 3 years ago

对,不管设置多少秒,永远是90秒回调error。哥们解决没

Lloyd0577 commented 3 years ago

对,不管设置多少秒,永远是90秒回调error。哥们解决没 还没呢