lingochamp / lingochamp/FileDownloader
超时时间不对
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
打开移动数据,但是这张卡是欠费状态,无法连接到网络,设置了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回调,有的时候过了很久才会回调,大部分不会回调
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the FileDownloader.setupOnApplicationOnCreate configuration and the FileDownloader.getImpl().create download entry point, focusing on connectTimeout and readTimeout. Reproduce the download with the provided mobile-data scenario and verify that the error callback occurs within the configured 15-second timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100