golangエージェントの使用時にgoroutinesの漏洩が増加

413 ワード

最適なソリューション
&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