[C#]: DoH 解析可能导致的部分失败以及慢速

Open
#3,778 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
networking

Research direction

The report points to the DoH timeout handling and resolver weight updates, and cites PR #3771 as the source of the concern. Read that pull request and locate the DoH implementation before assessing the proposed refactor. Done means slow or failed lookups caused by the described timeout and weight behavior are addressed; the issue leaves other possible refactor requirements open.

Written by the indexing model from the issue text.

Description

检查项 / Checklist
  • 我已在 Issues 页面 中搜索,确认了这一 Bug 未被提交过 / I have searched the Issues page and confirmed that this bug has not been reported yet.
  • 我确认只是全部选中而没有仔细确认就直接提交了这个 Issue,并且同意这个 Issue 可以直接被关闭 / I confirm that I checked all boxes without carefully reading them, and agree that this issue may be closed directly.
  • 我确认正在使用当前更新分支的最新版 PCL CE,若不是,此 Issue 可能会被直接关闭(更新方式:启动器 设置-关于-软件更新 检查更新,或在 Releases 页面下载) / I confirm that I am using the latest PCL CE version on the current update channel. If not, this issue may be closed directly. To update, check for updates in Settings → About → Updates, or download the latest version from the Releases page.
  • 我确认会详细描述我所遇到的问题,并附上日志和截图,而不是随便填点东西敷衍了事 / I will describe the problem in detail, attach logs and screenshots, and avoid submitting vague or incomplete information.
  • 我确认已亲自复现并核实所报告的问题;如未能复现,我已在描述中明确说明未确认的部分。Issue 中的描述、日志和截图均为真实内容,未直接提交 AI 生成的未经核实内容 / I confirm that I have personally reproduced and verified the reported problem. If I could not reproduce it, I have clearly stated which parts remain unconfirmed in the description. The description, logs, and screenshots are genuine, and I have not submitted unverified AI-generated content.
AI 使用情况 / AI Usage

未使用 / Not used

AI 工具与核实说明 / AI Tools and Verification

无

描述 / Description

由 @bgzsdzzl 提出( https://github.com/PCL-Community/PCL-CE/pull/3771 ),DoH 目前的实现会导致在部分情况下的慢速以及失败的可能。

具体是

  • 在超时控制处的处理不当,给查询过长的超时时间。
  • 在 DoH 权重中没有考虑非高质量解析源可能会偶发提高权重,后续缺少权重下降更新。

当然可能还有其他的内容,不过打算直接重构了。

重现步骤 / Steps to Reproduce

略去

日志与附件 / Logs & Attachments

略去

Dominant language
C#
Stars
4.3k
Forks
148
Avg merge
1d 6h
Merged PRs (30d)
64

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PCL-Community/PCL-CE

All issues in PCL-Community/PCL-CE

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.