This commit is contained in:
ccreater 2022-05-09 13:26:42 +08:00
parent 5c112e0ca8
commit 9f27655182

View File

@ -10,7 +10,7 @@ import (
)
func WrapperTcpWithTimeout(network, address string, timeout time.Duration) (net.Conn, error) {
d := &net.Dialer{Timeout: timeout/2}
d := &net.Dialer{Timeout: timeout}
return WrapperTCP(network, address, d)
}