Skip to content

Commit

Permalink
leakcheck: ignore http read/write goroutine (#5182)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Feb 1, 2022
1 parent 9807908 commit f68fb05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/leakcheck/leakcheck.go
Expand Up @@ -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
Expand Down

0 comments on commit f68fb05

Please sign in to comment.