Commit a1aec82c authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

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.
parent aa7458b8
...@@ -87,10 +87,8 @@ func (l *listener) Accept() (net.Conn, error) { ...@@ -87,10 +87,8 @@ func (l *listener) Accept() (net.Conn, error) {
} }
sc, err := newSecureConn(ctx, l.privk, c) sc, err := newSecureConn(ctx, l.privk, c)
if err != nil { if err != nil {
if catcher.IsTemporary(err) { log.Info("ignoring conn we failed to secure: %s %s", err, sc)
continue continue
}
return nil, err
} }
return sc, nil return sc, nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment