mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
HLTB sessions are short-lived and pinned to the requesting IP address and user agent. The handler fetched one session at the start of a scan and never renewed it, so once HLTB rejected it every remaining lookup failed for the rest of the scan. Retry with a renewed session on 403, and back off and retry on 429. Report the actual cause instead of mapping every HTTP error to "check your internet connection", which is now used only for genuine connect and timeout errors. Also fixes two adjacent bugs: - The honeypot key was written into the caller's payload dict in place. That key rotates with the session, so a renewal would leave the dead key in the body alongside the new one. - heartbeat() sent no user agent. HLTB rejects requests without one, and the httpx default only happens to be accepted today. initialize() is now async so the session can be renewed from the async request path, and uses the shared context httpx client. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>