diff --git a/rtpconn/webclient.go b/rtpconn/webclient.go index ef10d1b..67f5375 100644 --- a/rtpconn/webclient.go +++ b/rtpconn/webclient.go @@ -1007,13 +1007,12 @@ func clientLoop(c *webClient, ws *websocket.Conn, versionError bool) error { } } case <-ticker.C: - if time.Since(readTime) > 75*time.Second { + if time.Since(readTime) > 45*time.Second { return errors.New("client is dead") } // Some reverse proxies timeout connexions at 60 // seconds, make sure we generate some activity - // after 55s at most. - if time.Since(readTime) > 45*time.Second { + if time.Since(readTime) > 20*time.Second { err := c.write(clientMessage{ Type: "ping", })