diff --git a/src/rtsp/gst/server.rs b/src/rtsp/gst/server.rs index bd881cb..e1de67d 100644 --- a/src/rtsp/gst/server.rs +++ b/src/rtsp/gst/server.rs @@ -57,7 +57,12 @@ impl NeoRtspServer { factory.connect_client_connected(|_, client| { client.connect_new_session(|_, session| { log::debug!("New Session"); - session.set_timeout(5); + // Session timeout too small causes us to drop + // some ffmpeg clients too soon + // Too long causes too many open connections with + // clients like frigate (that seem to open multiple + // connections without shutting down old ones) + session.set_timeout(30); }); });