Explorar el Código

Increase ping timeout

Jakob Borg hace 12 años
padre
commit
42ad9f8b02
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      protocol/protocol.go

+ 1 - 1
protocol/protocol.go

@@ -71,7 +71,7 @@ type asyncResult struct {
 	err error
 	err error
 }
 }
 
 
-const pingTimeout = 30 * time.Second
+const pingTimeout = 2 * time.Minute
 const pingIdleTime = 5 * time.Minute
 const pingIdleTime = 5 * time.Minute
 
 
 func NewConnection(nodeID string, reader io.Reader, writer io.Writer, receiver Model) *Connection {
 func NewConnection(nodeID string, reader io.Reader, writer io.Writer, receiver Model) *Connection {