Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ssllabs-scan-v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ func invokeGetRepeatedly(url string) (*http.Response, []byte, error) {
if logLevel >= LOG_DEBUG {
log.Printf("[DEBUG] HTTP request failed with EOF (ref#2)")
}
} else if strings.Contains(err.Error(), "connection reset by peer") {
if logLevel >= LOG_DEBUG {
log.Printf("[DEBUG] HTTP request failed with connection reset by peer, retrying...")
}
} else {
log.Fatalf("[ERROR] HTTP request failed: %v (ref#2)", err.Error())
}
Expand Down