这段go程序会把内存全部消耗光

netaxcess · · 2879 次点击
polaris
社区,需要你我一同完善!
请求 url 内容后,有 close 吗?该释放的资源,有没有释放呢?
#1
更多评论
有关闭 defer res.Body.Close()
#2
polaris
社区,需要你我一同完善!
另外,一共会有多少个 url 啊?最好限制一下最多开启的 goroutine 数量
#3