From c0804969c40a749a36b3edfc1d51420f61a4f4ca Mon Sep 17 00:00:00 2001 From: Holly Gong <39108850+hogo6002@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:15:51 +1000 Subject: [PATCH] fix: bump osv max concurrent requests (#1290) The current `maxConcurrentRequests` setting is insufficient for container scanning, where one scan may report more than a thousand vulnerabilities. Bump it up to 1000 to fix it. --- pkg/osv/osv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/osv/osv.go b/pkg/osv/osv.go index 3d696b5a051..4715dc65f8a 100644 --- a/pkg/osv/osv.go +++ b/pkg/osv/osv.go @@ -28,7 +28,7 @@ const ( // maxQueriesPerRequest splits up querybatch into multiple requests if // number of queries exceed this number maxQueriesPerRequest = 1000 - maxConcurrentRequests = 25 + maxConcurrentRequests = 1000 maxRetryAttempts = 4 // jitterMultiplier is multiplied to the retry delay multiplied by rand(0, 1.0) jitterMultiplier = 2