diff options
author | Maran <maran.hidskes@gmail.com> | 2014-06-18 16:39:42 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-06-18 16:39:42 +0800 |
commit | 22e16f15a69f53934a61978eb18fdf0244a74a99 (patch) | |
tree | bd8e985d4fdb71cc31a3703318ae1434bfe17d1c /peer.go | |
parent | a90ffe1af1b28935fc77a2c5cf37972bac03f062 (diff) | |
download | dexon-22e16f15a69f53934a61978eb18fdf0244a74a99.tar.gz dexon-22e16f15a69f53934a61978eb18fdf0244a74a99.tar.zst dexon-22e16f15a69f53934a61978eb18fdf0244a74a99.zip |
Reduce peer timeout to 10 seconds
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -124,6 +124,7 @@ type Peer struct { port uint16 caps Caps + // This peer's public key pubkey []byte // Indicated whether the node is catching up or not @@ -171,7 +172,7 @@ func NewOutboundPeer(addr string, ethereum *Ethereum, caps Caps) *Peer { // Set up the connection in another goroutine so we don't block the main thread go func() { - conn, err := net.DialTimeout("tcp", addr, 30*time.Second) + conn, err := net.DialTimeout("tcp", addr, 10*time.Second) if err != nil { ethutil.Config.Log.Debugln("Connection to peer failed", err) |