icyws

a tiny ices2 input module+websocket
Download | Log | Files | Refs | README | LICENSE

commit 643d3e0ad41896d00ac5caca7b934915b8082089
parent 9453485b89666dc319179fafcca2cecbb64b97e3
Author: amrfti <andrew@kloet.net>
Date:   Tue,  9 Dec 2025 19:46:36 -0500

fix timeout

Diffstat:
Mmain.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go @@ -330,9 +330,9 @@ func (s *nowPlayingServer) setLast(message string) { func (s *nowPlayingServer) readUntilClose(conn *websocket.Conn) { defer s.removeClient(conn) conn.SetReadLimit(1024) - conn.SetReadDeadline(time.Now().Add(60 * time.Second)) + conn.SetReadDeadline(time.Now().Add(3600 * time.Second)) conn.SetPongHandler(func(string) error { - conn.SetReadDeadline(time.Now().Add(60 * time.Second)) + conn.SetReadDeadline(time.Now().Add(3600 * time.Second)) return nil })