Sitemap discovery still waits for global timeout because HEAD candidate probes can stall
Which package is this bug report for? If unsure which one to select, leave blank
None
Issue description
Problem summary (after PRs #3434 and #3429)
We still see sitemap discovery timing out on some domains (example: https://justalex.com), even though discovery now returns partial results.
Example log:
WARN Sitemap discovery timed out after 30s, using 1 discovered sitemap URL(s). Context of previous fixes
PR #3434 addressed startup hangs in discoverValidSitemaps. PR #3429 added timeoutMillis, per-request timeout, and abort handling so discovery no longer hangs indefinitely. Result: the process is now bounded by timeout, but still often runs until full timeout. What is still wrong
discoverValidSitemaps candidate checks still use HEAD requests (/sitemap.xml, /sitemap.txt, /sitemap_index.xml). HEAD can stall on some origins / redirect patterns. So discovery may yield one sitemap early (from robots.txt or first candidate), but final completion is delayed until global timeout because later HEAD checks do not finish normally.