From b7a4e9212140cdb7660d7042414cf97bf834f189 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Sun, 11 Jan 2015 12:05:13 -0800 Subject: [PATCH] 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. --- p2p/net/conn/listen.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/p2p/net/conn/listen.go b/p2p/net/conn/listen.go index c2049eacc..bec01d71e 100644 --- a/p2p/net/conn/listen.go +++ b/p2p/net/conn/listen.go @@ -87,10 +87,8 @@ func (l *listener) Accept() (net.Conn, error) { } sc, err := newSecureConn(ctx, l.privk, c) if err != nil { - if catcher.IsTemporary(err) { - continue - } - return nil, err + log.Info("ignoring conn we failed to secure: %s %s", err, sc) + continue } return sc, nil }