go http 长连接

注意问题:

  1. 需要读取body, 否则不能复用连接
    io.Copy(ioutil.Discard, resp.Body)
posted @ 2020-04-20 11:39  idea偶买噶  阅读(653)  评论(0)    收藏  举报