p2p/net/conn: reuse timeout is real error
should be returning false.
Juan Batiz-Benet committed
Jan 26, 2015 at 09:53 UTC
fda92754cc0544eddfc83fceb8fe662d5f172118
1 file changed
+1
-1
p2p/net/conn/dial.go
+1
-1
@@ -152,7 +152,7 @@ func reuseErrShouldRetry(err error) bool {
152
153
// if it's a network timeout error, it's a legitimate failure.
154
if nerr, ok := err.(net.Error); ok && nerr.Timeout() {
155
- return true
155
+ return false
156
}
157
158
errno, ok := err.(syscall.Errno)