Repository navigation
fix(cli): retry transient failures in the pre-flight reachability probe - #58
Merged
Merged
Conversation
The probe gets one attempt and a failure hard-aborts before any crawling, so a single blip discarded a run that succeeded on every retry (observed: a 10s timeout while curl reached the same host in 42ms). The crawler proper has retried with backoff since forever; only this pre-flight check did not. Retry up to 3 attempts with a short exponential backoff, but only for errors that can plausibly succeed on a second try. DNS failures, refused connections and certificate errors are definitive and still fail on the first attempt, and a total budget caps the worst case, so genuinely dead hosts stay fast. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/1408-probe-retry
branch
from
August 1, 2026 13:08
a34f8ed to
dea8a09
Compare
nc9
added a commit
that referenced
this pull request
Aug 1, 2026
…etic * origin/main: fix(cli): retry transient failures in the pre-flight reachability probe (#58)
nc9
added a commit
that referenced
this pull request
Aug 1, 2026
* origin/main: fix(cli): retry transient failures in the pre-flight reachability probe (#58)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pre-flight probe got exactly one attempt, and its failure hard-aborts the audit before any crawling. A single transient blip therefore discarded a whole run (observed: a 10s timeout while
curlreached the same host in 42ms, with three subsequent runs succeeding at byte-identical scores). The crawler itself has retried with exponential backoff since forever; only this check did not.Tests cover the classifier both ways, an end-to-end recovery against a raw TCP listener that hangs up on the first connection and answers the second, and that a dead port returns quickly rather than burning the retry budget.