mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed `versioninfo.Caller.Call` closes the response body on every path, not just the 200 one. The two goroutines reported in the leak test is from this. ## Why? The `defer` sat below the status check, so a non-200 returned with the body open. The transport sets `DisableKeepAlives`, so its read and write loops stay pinned waiting for a body nothing will close — one connection leaked per failed check, for the process lifetime. ## How did you test it? - [x] built - [x] covered by existing tests