mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 02:49:40 +08:00
_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.