diff --git a/internal/rlpa/server.go b/internal/rlpa/server.go index 088ffca..c2e6e9a 100644 --- a/internal/rlpa/server.go +++ b/internal/rlpa/server.go @@ -45,6 +45,7 @@ func (s *server) Listen(address string) error { conn.SetKeepAlive(true) conn.SetKeepAlivePeriod(30 * time.Second) + conn.SetReadDeadline(time.Now().Add(5 * time.Minute)) go s.handleConn(conn) } }