Skip to content

Commit

Permalink
reduce the default stream protocol negotiation timeout (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Dec 8, 2021
1 parent 94ec54e commit 0f76f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/host/basic/basic_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var log = logging.Logger("basichost")

var (
// DefaultNegotiationTimeout is the default value for HostOpts.NegotiationTimeout.
DefaultNegotiationTimeout = time.Second * 60
DefaultNegotiationTimeout = 10 * time.Second

// DefaultAddrsFactory is the default value for HostOpts.AddrsFactory.
DefaultAddrsFactory = func(addrs []ma.Multiaddr) []ma.Multiaddr { return addrs }
Expand Down Expand Up @@ -944,7 +944,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr {

// Did the router give us a routable public addr?
if manet.IsPublicAddr(extMaddr) {
//well done
// well done
continue
}

Expand Down

0 comments on commit 0f76f17

Please sign in to comment.