Prevent SetDeadline, SetReadDeadline and SetWriteDeadline from setting up unlimited deadline, and also impose our own timeout retry mechanism.

This commit is contained in:
NI
2019-09-18 18:51:17 +08:00
parent aba5993ffb
commit c7df33f14f
5 changed files with 361 additions and 10 deletions

View File

@@ -25,10 +25,6 @@ import (
"golang.org/x/net/proxy"
)
var (
emptyTime = time.Time{}
)
type socks5Dial struct {
net.Dialer
}