gratonos

第 9318 号会员 /

回复了 tim0991 创建的主题: golang http.client 并发请求无法立即关闭

http.Client创建一个就好,不要循环创建,官方文档有说明:“The Client's Transport typically has internal state (cached TCP connections), so Clients should be reused instead of created as needed. Clients are safe for concurrent use by multiple goroutines.”