general: remove unnecessary SetKeepAlive

This commit is contained in:
nadoo committed 2018-08-03 19:27:47 +08:00
1 parent 6cdfbc3552
commit 1f8a3cdf53
7 files changed
+2 -25

No files matched your search

-5
View File
@@ -227,12 +227,7 @@ func (s *HTTP) Dial(network, addr string) (net.Conn, error) {
return nil, err
}
if c, ok := rc.(*net.TCPConn); ok {
c.SetKeepAlive(true)
}
var buf bytes.Buffer
buf.Write([]byte("CONNECT " + addr + " HTTP/1.1\r\n"))
buf.Write([]byte("Proxy-Connection: Keep-Alive\r\n"))