From 4853a1a6d35c218bcb9e97bad5f01dacbbe9bf14 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Mon, 15 Aug 2016 17:48:30 +0800 Subject: [PATCH] Increase ping time --- transport/internet/ws/wsconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/ws/wsconn.go b/transport/internet/ws/wsconn.go index e242eef2..1f59b4cd 100644 --- a/transport/internet/ws/wsconn.go +++ b/transport/internet/ws/wsconn.go @@ -189,7 +189,7 @@ func (ws *wsconn) pingPong() { ws.wlock.Lock() ws.wsc.WriteMessage(websocket.PingMessage, nil) ws.wlock.Unlock() - tick := time.NewTicker(time.Second * 3) + tick := time.NewTicker(time.Second * 30) select { case <-pongRcv: