Browse Source

Reduce ping time & timeout (ref #358)

Jakob Borg 11 years ago
parent
commit
537c6b3b69
1 changed files with 2 additions and 2 deletions
  1. 2 2
      protocol/protocol.go

+ 2 - 2
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 {