kms: fix go routine leak in gRPC connection

Signed-off-by: Monis Khan <mok@microsoft.com>
This commit is contained in:
Monis Khan
2022-08-24 01:51:19 +00:00
parent 76277917b9
commit 4e68e9b5ad
11 changed files with 140 additions and 61 deletions

View File

@@ -198,7 +198,7 @@ func EtcdMain(tests func() int) {
// like k8s.io/klog/v2.(*loggingT).flushDaemon()
// TODO(#108483): Reduce this number once we address the
// couple remaining issues.
if dg := runtime.NumGoroutine() - before; dg <= 15 {
if dg := runtime.NumGoroutine() - before; dg <= 9 {
return true, nil
}
// Allow goroutines to schedule and die off.