p2p/net/conn/Listener: ignore conns failed to secure
Instead of erroring out, which would break the listener, we instead log a message and continue. This is not an error, the internet is a place with lots of probing + connection failures.
Juan Batiz-Benet committed
Jan 11, 2015 at 12:05 UTC
b7a4e9212140cdb7660d7042414cf97bf834f189
1 file changed
+2
-4
p2p/net/conn/listen.go
+2
-4
@@ -87,10 +87,8 @@ func (l *listener) Accept() (net.Conn, error) {
87
}
88
sc, err := newSecureConn(ctx, l.privk, c)
89
if err != nil {
90
- if catcher.IsTemporary(err) {
91
- continue
92
- }
93
- return nil, err
90
+ log.Info("ignoring conn we failed to secure: %s %s", err, sc)
91
+ continue
92
}
93
return sc, nil
94
}