From 9480dd8605b991dade8fe752097cfa855faf0604 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Tue, 16 Apr 2024 10:13:24 +0700 Subject: [PATCH] Increase timeout on rtsp session --- src/rtsp/gst/server.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }); });