Browse Source

Remove unused pong handler in WebSocket connection management and bump version to v0.24.6

main
mleku 2 months ago
parent
commit
cefd0a98e7
No known key found for this signature in database
  1. 5
      app/handle-websocket.go
  2. 2
      pkg/version/version

5
app/handle-websocket.go

@ -120,11 +120,6 @@ whitelist:
log.D.F("AUTH challenge sent successfully to %s", remote) log.D.F("AUTH challenge sent successfully to %s", remote)
} }
ticker := time.NewTicker(DefaultPingWait) 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 // Don't pass cancel to Pinger - it should not be able to cancel the connection context
go s.Pinger(ctx, listener, ticker) go s.Pinger(ctx, listener, ticker)
defer func() { defer func() {

2
pkg/version/version

@ -1 +1 @@
v0.24.5 v0.24.6
Loading…
Cancel
Save