|
@@ -50,11 +50,7 @@ func newApp() *gin.Engine {
|
|
|
},
|
|
|
WriteWait: 10 * time.Second,
|
|
|
ReadWait: 10 * time.Second,
|
|
|
- PongWait: 20 * time.Second,
|
|
|
- // 写 ping 帧周期(必须小于 pongWait), 54s
|
|
|
- // PingWait: (600 * time.Second) * 9 / 10,
|
|
|
- // (pongWait * 9) / 10
|
|
|
- PingWait: 13 * time.Second,
|
|
|
+ PingWait: 120 * time.Second,
|
|
|
Hub: server.NewHub(server.HubConfig{
|
|
|
ConnectSize: 1024,
|
|
|
DisconnectSize: 1024,
|