golang 使用代理时goroutines泄漏不断增多

最佳解决方案

&http.Transport{
        TLSHandshakeTimeout:   2 * time.Second,
        ResponseHeaderTimeout: 2 * time.Second,
        ExpectContinueTimeout: 1 * time.Second,
        DisableKeepAlives:     true,
    }

参考链接

https://mlog.club/article/1208661

https://barbery.me/post/2019-08-02-fix-goroutine-memory-leak/

https://ask.csdn.net/questions/1043763?sort=id

你可能感兴趣的:(golang)