diff options
author | Jakob Borg <jakob@nym.se> | 2014-06-14 11:07:34 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-06-14 11:07:34 +0200 |
commit | 537c6b3b6938fa417330c65f5c92e6589c313493 (patch) | |
tree | cf61e8ad2e43166319fc11e1ea08130d0db64874 | |
parent | 48a3fac2da160882548a772cba67b0f7efe9d412 (diff) |
Reduce ping time & timeout (ref #358)
-rw-r--r-- | protocol/protocol.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol/protocol.go b/protocol/protocol.go index def58f385f..ae916cd14d 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -96,8 +96,8 @@ type asyncResult struct { } const ( - pingTimeout = 300 * time.Second - pingIdleTime = 600 * time.Second + pingTimeout = 30 * time.Second + pingIdleTime = 60 * time.Second ) func NewConnection(nodeID string, reader io.Reader, writer io.Writer, receiver Model) Connection { |