leakcheck: ignore http read/write goroutine (#5182)

This commit is contained in:
Menghan Li
2022-02-01 10:37:51 -08:00
committed by GitHub
parent 980790869b
commit f68fb05c3e

View File

@ -42,6 +42,12 @@ var goroutinesToIgnore = []string{
"runtime_mcall",
"(*loggingT).flushDaemon",
"goroutine in C code",
// Ignore the http read/write goroutines. gce metadata.OnGCE() was leaking
// these, root cause unknown.
//
// https://github.com/grpc/grpc-go/issues/5171
// https://github.com/grpc/grpc-go/issues/5173
"created by net/http.(*Transport).dialConn",
}
// RegisterIgnoreGoroutine appends s into the ignore goroutine list. The