mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 12:34:22 +08:00
276e33a563
定位:oauth_start_callback_server 在端口被占用时调用 lsof 未加 -n/-P, 触发反向 DNS 解析,遇到不可达解析器会卡 ~40s 才超时返回。 修复: - lsof 加 -n -P 跳过 DNS/端口名解析,并用 tokio::time::timeout 包 5s - 改用 JoinHandle + abort() 硬中止服务任务,停止时立即 drop listener 释放端口,避免遗留服务导致下次启动走到 kill 路径 - netstat 同样加 5s 超时 Co-Authored-By: Claude <noreply@anthropic.com>