This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit baeb949
1 parent 00dc67c commit baeb949 Copy full SHA for baeb949
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
conn "github.com/ipfs/go-ipfs/p2p/net/conn"
13
13
addrutil "github.com/ipfs/go-ipfs/p2p/net/swarm/addr"
14
14
peer "github.com/ipfs/go-ipfs/p2p/peer"
15
+ u "github.com/ipfs/go-ipfs/util"
15
16
lgbl "github.com/ipfs/go-ipfs/util/eventlog/loggables"
16
17
17
18
ma "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
41
42
const dialAttempts = 1
42
43
43
44
// number of concurrent outbound dials over transports that consume file descriptors
44
- const concurrentFdDials = 160
45
+ var concurrentFdDials = 160
46
+
47
+ func init () {
48
+ concurrentFdDials = 80
49
+ DialTimeout = time .Second * 8
50
+ }
45
51
46
52
// DialTimeout is the amount of time each dial attempt has. We can think about making
47
53
// this larger down the road, or putting more granular timeouts (i.e. within each
You can’t perform that action at this time.
0 commit comments