VA: Fix performRemoteValidation goroutine leak (#7727)

PerformValidation goroutines write to a buffered results channel to
prevent blocking.
This commit is contained in:
Samantha Frank 2024-09-30 14:51:06 -04:00 committed by GitHub
parent d850e633ae
commit ab69b72901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ func (va *ValidationAuthorityImpl) performRemoteValidation(
err error
}
results := make(chan *rvaResult)
results := make(chan *rvaResult, len(va.remoteVAs))
for _, i := range rand.Perm(len(va.remoteVAs)) {
remoteVA := va.remoteVAs[i]