From cefd0a98e7f8952f79abc3d97b68951b78450234 Mon Sep 17 00:00:00 2001 From: mleku Date: Tue, 4 Nov 2025 10:44:45 +0000 Subject: [PATCH] Remove unused pong handler in WebSocket connection management and bump version to v0.24.6 --- app/handle-websocket.go | 5 ----- pkg/version/version | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/handle-websocket.go b/app/handle-websocket.go index 645a6eb..fae2a59 100644 --- a/app/handle-websocket.go +++ b/app/handle-websocket.go @@ -120,11 +120,6 @@ whitelist: log.D.F("AUTH challenge sent successfully to %s", remote) } ticker := time.NewTicker(DefaultPingWait) - // Set pong handler - extends read deadline when pongs are received - conn.SetPongHandler(func(string) error { - conn.SetReadDeadline(time.Now().Add(DefaultPongWait)) - return nil - }) // Don't pass cancel to Pinger - it should not be able to cancel the connection context go s.Pinger(ctx, listener, ticker) defer func() { diff --git a/pkg/version/version b/pkg/version/version index 1a1658f..33890a3 100644 --- a/pkg/version/version +++ b/pkg/version/version @@ -1 +1 @@ -v0.24.5 \ No newline at end of file +v0.24.6 \ No newline at end of file