fix(v2ex): recover from Python TLS EOF - #536
Closed
LeonChaoX wants to merge 1 commit into
Closed
Conversation
Owner
|
感谢实现 V2EX TLS EOF fallback。你的原始作者提交已保留在 merged #577 中,并在其上增加了精确错误边界、响应限制、回归测试和真实 smoke;因此关闭原 PR。 |
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.
Summary
urllibresponses at 1 MiBcurlTLS stackdoctorrecoveryRoot cause
On some Windows/network combinations, Python's TLS stack raises
UNEXPECTED_EOF_WHILE_READINGeven though the same V2EX endpoint succeeds through the operating system'scurl. Because the channel and doctor shared the sameurllibpath, Agent Reach reported V2EX as unavailable and could not fetch data.User impact
V2EX checks and data calls now recover when the native TLS stack can reach the endpoint, without weakening certificate validation or hiding unrelated failures.
Validation
python -m pytest tests/test_v2ex_channel.py tests/test_doctor.py tests/test_channel_contracts.py tests/test_skill_command.py -q— 37 passedpython -m ruff check agent_reach/channels/v2ex.py tests/test_v2ex_channel.py tests/test_skill_command.pygit diff --checkCloses #514