diff --git a/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/Checkpoint 2026-11-15 02-09-37 UTC [e08250847a].md b/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/Checkpoint 2026-11-15 02-09-37 UTC [e08250847a].md new file mode 100644 index 0000000..f7fc40e --- /dev/null +++ b/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/Checkpoint 2026-11-15 02-09-37 UTC [e08250847a].md @@ -0,0 +1,40 @@ +--- +title: Checkpoint 2026-11-15 02:09:37 UTC [e08250847a] +type: checkpoint +permalink: main/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/checkpoint-2026-11-15-02-09-37-utc-e08250847a +stable_id: 9204a4c0-9982-4785-8e95-a8fb1f2fd7f2 +scope: project +memory_type: checkpoint +project_id: f5708b07-f0ea-42a4-b4ed-0e5443990ff9 +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: ckpt-socks4-20261115 +created_at: '2026-11-15T02:09:37.927197+00:00' +updated_at: '2026-11-15T02:09:37.927197+00:00' +tags: +- proxy +- socks4 +--- + +httpx 只认 http/https/socks5,所以代理池里的 SOCKS4 探测会全部报 Unknown scheme,不是这些代理本身一定全坏。已用 httpx-socks 接上 SOCKS4/SOCKS5。 + +## 完成 +检测和学习会话创建客户端时,SOCKS 走 httpx-socks 传输,HTTP/HTTPS 仍用 httpx 的 proxy=。对 127.0.0.1:1 的 SOCKS4 探测返回「无法连接」,不再是 Unknown scheme。 + +## 关键实现 +- euniv.proxy.client_proxy_args / sync_httpx_client / async_httpx_client +- EunivClient、StudySession、proxy_pool.probe 统一走上述工厂 +- 依赖:httpx-socks==0.10.1、python-socks==3.2.1、sniffio==1.3.1 + +## 验证 +101 pytest 通过。SOCKS4 探测 closed port -> (False, ~2043, 无法连接)。需重启 uvicorn 后用户再点测试。 + +## 下一步 +重启后的服务已加载新代码。用户在代理页重新检测。公开 SOCKS4 仍可能真正失效,但原因会变成无法连接/超时。 + +## 给下个会话 +- 不要提交 data/、Temp/、web/dist、.chlz。用户明确要求才 commit。 +- 未提交包仍含心跳 0、学习协议、首页定时保存、hours_source、管理端排版、本轮 SOCKS4。 +- SOCKS4 已修;测试全部是否阻塞仍可能是旧问题。 +- 不要长时间点立即开始跑 1187 门课。 \ No newline at end of file