diff options
Diffstat (limited to 'ssllabs-scan.go')
-rw-r--r-- | ssllabs-scan.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssllabs-scan.go b/ssllabs-scan.go index 50aaeec..2baf732 100644 --- a/ssllabs-scan.go +++ b/ssllabs-scan.go @@ -391,19 +391,19 @@ func invokeGetRepeatedly(url string) (*http.Response, []byte, error) { return resp, body, nil } else { - if err.Error() == "EOF" { + if strings.Contains(err.Error(), "EOF") { // Server closed a persistent connection on us, which // Go doesn't seem to be handling well. So we'll try one // more time. if retryCount > 5 { - log.Fatalf("[ERROR] Too many HTTP requests (5) failed with EOF (ref#1)") + log.Fatalf("[ERROR] Too many HTTP requests (5) failed with EOF (ref#3)") } if logLevel >= LOG_DEBUG { - log.Printf("[DEBUG] HTTP request failed with EOF (ref#1)") + log.Printf("[DEBUG] HTTP request failed with EOF (ref#3)") } } else { - log.Fatalf("[ERROR] HTTP request failed: %v (ref#1)", err.Error()) + log.Fatalf("[ERROR] HTTP request failed: %v (ref#3)", err.Error()) } retryCount++ |