Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 286b97a

Browse files
authored
reduce default timeouts to 15s (#192)
1 parent becdcea commit 286b97a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transport/transport.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import (
1717
// DialTimeout is the maximum duration a Dial is allowed to take.
1818
// This includes the time between dialing the raw network connection,
1919
// protocol selection as well the handshake, if applicable.
20-
var DialTimeout = 60 * time.Second
20+
var DialTimeout = 15 * time.Second
2121

2222
// AcceptTimeout is the maximum duration an Accept is allowed to take.
2323
// This includes the time between accepting the raw network connection,
2424
// protocol selection as well as the handshake, if applicable.
25-
var AcceptTimeout = 60 * time.Second
25+
var AcceptTimeout = 15 * time.Second
2626

2727
// A CapableConn represents a connection that has offers the basic
2828
// capabilities required by libp2p: stream multiplexing, encryption and

0 commit comments

Comments
 (0)