YouEclipse

Results 5 comments of YouEclipse

你看看是不是你的gist设置成私有的了?

```io.Copy(ioutil.Discard, &io.LimitedReader{R: resp.Body, N: maxBodySlurpSize})``` 其实就是 body>dev/null 这段代码应该是参考了go的http.Client源码,如果body没有被读完且close,是不会复用底层TCP连接的 > // The http Client and Transport guarantee that Body is always // non-nil, even on responses without a body or responses...

另外我找到了相关issue https://github.com/kubernetes/kubernetes/issues/30975

这是go http.Client的源码 https://github.com/golang/go/blob/master/src/net/http/client.go#L698

编辑器vscode也行,毕竟IDEA是收费软件