Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

fix: less confusing log message #22

Merged
merged 1 commit into from
Mar 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ require (
github.com/multiformats/go-multiaddr v0.0.1
github.com/multiformats/go-multiaddr-net v0.0.1
)

go 1.13
2 changes: 1 addition & 1 deletion reuseport.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func reuseDial(ctx context.Context, laddr *net.TCPAddr, network, raddr string) (
if reuseErrShouldRetry(err) && ctx.Err() == nil {
// We could have an existing socket open or we could have one
// 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)
}
return con, err
Expand Down