feat: improve http download strategy to prevent speed drops near completion (#969)

This commit is contained in:
Levi authored and GitHub committed 2025-04-05 22:20:35 +08:00
1 parent bfad91dcab
commit 50bc9ab129
4 files changed
+263 -134

No files matched your search

+8 -2
View File
@@ -14,6 +14,12 @@ type OptsExtra struct {
// Stats for download
type Stats struct {
// http stats
// health indicators of http
Connections []*StatsConnection `json:"connections"`
}
type StatsConnection struct {
Downloaded int64 `json:"downloaded"`
Completed bool `json:"completed"`
Failed bool `json:"failed"`
RetryTimes int `json:"retryTimes"`
}