fix: shorten session heartbeat interval to 15s

This commit is contained in:
richjohnrambo
2026-09-17 00:16:14 +08:00
parent 0f8e3b82b7
commit 7df3313c78
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const (
pongWait = idleSessionTimeout
// Send pings to peer with this period. Must be less than pongWait.
pingPeriod = 30 * time.Second
pingPeriod = 15 * time.Second
)
func (sess *Session) closeWS() {