diff --git a/error.go b/error.go index 521594b..a6567ef 100644 --- a/error.go +++ b/error.go @@ -91,7 +91,7 @@ func isBadConn(err error, allowTimeout bool, addr string) bool { if allowTimeout { if netErr, ok := err.(net.Error); ok && netErr.Timeout() { - return !netErr.Temporary() + return false } }