Repository navigation
修复手动下载语音模型时触发限流 - #861
Open
Plastic-time wants to merge 2 commits into
Open
修复手动下载语音模型时触发限流#861Plastic-time wants to merge 2 commits into
Plastic-time wants to merge 2 commits into
Conversation
Owner
|
|
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
手动下载推荐语音时,每个分片都重新向 AivisHub 申请下载链接,容易触发 HTTP 429。
改动
同一任务复用首次请求得到的 HTTPS 下载地址。仍校验文件大小和 SHA-256。
Windows 实测两款推荐模型,修复前 0/2 下载成功,修复后 2/2,每款只申请一次链接。回归用例覆盖限流和分片下载。
Build.ps1 -TestsOnly共 3,469 项,3,281 项通过,161 项跳过。27 项失败都在主线基线的失败清单里。引擎首次启动时自行安装默认模型的路径仍需单独验证。
存储地址返回 403 后,并发分片共用一次续期,再按各自的原 Range 继续。包括并发续期和重复拒绝的下载测试共 19 项通过。
Refs #777