The leak is here httpClient := &http.Client{Timeout: timeout, Transport: &http.Transport{Dial : dialer.Dial}}
If the httpClient value goes out of scope the connections attached to that will leak, along with their associated goroutines. On Monday, 30 April 2018 07:56:43 UTC+2, Tamás Gulácsi wrote: > > Where do you Close the dialer? Why aren't you reusing the httpClient? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.