-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
改进 ProgressCheatBlocker #591
Conversation
WalkthroughThe Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🔇 Additional comments (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
在之前的版本中,为了避免文件过小时计算文件下载进度时过于敏感导致误封的情况,在配置文件中定义了一个预设的大小
minimum-size
来控制小于此大小的 Torrent 将被完全跳过,这个默认值是 50MB。一旦种子文件大小小于此值,PeerBanHelper 就会完全跳过此 Torrent 的 ProgressCheatBlocker 检查代码。此功能设计时,吸血情况远没有今天如此复杂。我们发现部分吸血端有时连较小的 Torrent 也没有放过。
此 PR 改进了 ProgressCheatBlocker 的代码。当 Torrent 小于
minimum-size
时,仅跳过部分检查,以下是更改前后的对比:Summary by CodeRabbit
New Features
Bug Fixes