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 ( var (
// DefaultNegotiationTimeout is the default value for HostOpts.NegotiationTimeout. // 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 is the default value for HostOpts.AddrsFactory.
DefaultAddrsFactory = func(addrs []ma.Multiaddr) []ma.Multiaddr { return addrs } DefaultAddrsFactory = func(addrs []ma.Multiaddr) []ma.Multiaddr { return addrs }