How to reuse it?
понедельник, 30 апреля 2018 г., 8:56:43 UTC+3 пользователь Tamás Gulácsi
написал:
>
> 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 thi
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 wrot