We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f6dd8 commit 6a475c0Copy full SHA for 6a475c0
.gitignore
@@ -29,3 +29,4 @@ debug_monitor.sh
29
sqlite.db
30
config
31
heap.txt
32
+gp.txt
cmd/dashboard/controller/common_page.go
@@ -1286,6 +1286,7 @@ func (cp *commonPage) ws(c *gin.Context) {
1286
1287
// 处理客户端自定义的ping消息
1288
if msgType == websocket.TextMessage && string(message) == `{"type":"ping"}` {
1289
+ conn.SetReadDeadline(time.Now().Add(60 * time.Second))
1290
conn.SetWriteDeadline(time.Now().Add(10 * time.Second))
1291
if err := safeConn.WriteMessage(websocket.TextMessage, []byte(`{"type":"pong"}`)); err != nil {
1292
log.Printf("发送pong失败 %s: %v", connID, err)
0 commit comments