Files
DeepTutor/deeptutor/runtime
wumajiehechuan-lab f17a586bc9 fix(runtime): bypass system proxy for loopback health checks
_wait_for_http/_http_ready probe http://127.0.0.1:<port>/ with plain
urllib.request.urlopen, which routes requests through a configured
proxy (http_proxy env var or system proxy settings). When that proxy
is dead or refuses loopback URLs, every probe fails for the whole
readiness window and the supervisor kills a healthy service:

    RuntimeError: Backend did not become ready within 60s

The failure is reported as not_ready rather than exited, i.e. the
child process was alive the whole time - the health check just could
not reach 127.0.0.1.

Reproduction: any machine with http_proxy set and no no_proxy
exemption for 127.0.0.1 (VPN/Clash-type tools commonly set one);
observed on a real Windows machine where the backend was running but
the launcher never became ready.

Use a single proxy-free opener (urllib.request.ProxyHandler({}))
for all local health checks. Outbound requests elsewhere are
unaffected; the probes only ever target loopback URLs constructed
in this module.
2026-09-16 20:40:44 -07:00
..
2026-09-06 13:46:29 +08:00
2026-09-02 04:09:11 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-09-03 01:38:54 +08:00
2026-08-02 13:07:32 +08:00
2026-04-23 19:29:16 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00