reduce the default stream protocol negotiation timeout (#1254)

This commit is contained in:
Marten Seemann 2021-12-08 09:10:17 +04:00 committed by GitHub
parent 94ec54e231
commit 0f76f17417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 }
@ -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
}