mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-04 05:40:10 +08:00
reduce default timeouts to 15s (#192)
This commit is contained in:
parent
becdceadda
commit
286b97aee3
@ -17,12 +17,12 @@ import (
|
|||||||
// DialTimeout is the maximum duration a Dial is allowed to take.
|
// DialTimeout is the maximum duration a Dial is allowed to take.
|
||||||
// This includes the time between dialing the raw network connection,
|
// This includes the time between dialing the raw network connection,
|
||||||
// protocol selection as well the handshake, if applicable.
|
// protocol selection as well the handshake, if applicable.
|
||||||
var DialTimeout = 60 * time.Second
|
var DialTimeout = 15 * time.Second
|
||||||
|
|
||||||
// AcceptTimeout is the maximum duration an Accept is allowed to take.
|
// AcceptTimeout is the maximum duration an Accept is allowed to take.
|
||||||
// This includes the time between accepting the raw network connection,
|
// This includes the time between accepting the raw network connection,
|
||||||
// protocol selection as well as the handshake, if applicable.
|
// protocol selection as well as the handshake, if applicable.
|
||||||
var AcceptTimeout = 60 * time.Second
|
var AcceptTimeout = 15 * time.Second
|
||||||
|
|
||||||
// A CapableConn represents a connection that has offers the basic
|
// A CapableConn represents a connection that has offers the basic
|
||||||
// capabilities required by libp2p: stream multiplexing, encryption and
|
// capabilities required by libp2p: stream multiplexing, encryption and
|
||||||
|
Loading…
Reference in New Issue
Block a user