Commit 87fd529e authored by Steven Allen's avatar Steven Allen

fix: less confusing log message

fixes https://github.com/ipfs/go-ipfs/issues/6922
parent ee95e1c0
...@@ -57,7 +57,7 @@ func reuseDial(ctx context.Context, laddr *net.TCPAddr, network, raddr string) ( ...@@ -57,7 +57,7 @@ func reuseDial(ctx context.Context, laddr *net.TCPAddr, network, raddr string) (
if reuseErrShouldRetry(err) && ctx.Err() == nil { if reuseErrShouldRetry(err) && ctx.Err() == nil {
// We could have an existing socket open or we could have one // We could have an existing socket open or we could have one
// stuck in TIME-WAIT. // stuck in TIME-WAIT.
log.Debugf("failed to reuse port, dialing with a random port: %s", err) log.Debugf("failed to reuse port, will try again with a random port: %s", err)
con, err = fallbackDialer.DialContext(ctx, network, raddr) con, err = fallbackDialer.DialContext(ctx, network, raddr)
} }
return con, err return con, err
......
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