diff --git a/ibpmonitor/checkssl.go b/ibpmonitor/checkssl.go index 035417c..10318c1 100644 --- a/ibpmonitor/checkssl.go +++ b/ibpmonitor/checkssl.go @@ -12,8 +12,6 @@ import ( "time" ) -const MaxConcurrentChecks = 10 - type SslResult struct { CheckName string `json:"checkname"` MemberName string `json:"membername"` @@ -31,6 +29,8 @@ type SslData struct { func SslCheck(member Member, options config.CheckConfig, resultsCollectorChannel chan string) { + var MaxConcurrentChecks = 20 + checkName := "ssl" connectTimeout := getIntOption(options.ExtraOptions, "ConnectTimeout", 4) uniqueHostnames := make(map[string]bool) diff --git a/ibpmonitor/checkwss.go b/ibpmonitor/checkwss.go index 18d0978..30d34ec 100644 --- a/ibpmonitor/checkwss.go +++ b/ibpmonitor/checkwss.go @@ -36,10 +36,11 @@ type JSONRPCRequest struct { } func WssCheck(member Member, options config.CheckConfig, resultsCollectorChannel chan string) { + + var MaxConcurrentChecks = 20 connectTimeout := getIntOption(options.ExtraOptions, "ConnectTimeout", 4) - const maxConcurrentChecks = 10 - sem := semaphore.NewWeighted(int64(maxConcurrentChecks)) + sem := semaphore.NewWeighted(int64(MaxConcurrentChecks)) var wg sync.WaitGroup