Added connection refused error to skip with MaxHostError option (#2955)

dev
Sandeep Singh 2022-12-03 12:54:03 +05:30 committed by GitHub
parent 3b31799847
commit 515503f5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (c *Cache) MarkFailed(value string, err error) {
_ = c.failedTargets.Set(finalValue, numberOfErrorsValue+1) _ = c.failedTargets.Set(finalValue, numberOfErrorsValue+1)
} }
var checkErrorRegexp = regexp.MustCompile(`(no address found for host|Client\.Timeout exceeded while awaiting headers|could not resolve host)`) var checkErrorRegexp = regexp.MustCompile(`(no address found for host|Client\.Timeout exceeded while awaiting headers|could not resolve host|connection refused)`)
// checkError checks if an error represents a type that should be // checkError checks if an error represents a type that should be
// added to the host skipping table. // added to the host skipping table.