Increase timeout on rtsp session

This commit is contained in:
QuantumEntangledAndy committed 2024-04-16 10:13:24 +07:00
1 parent 2b827d9542
commit 9480dd8605
1 file changed
+6 -1
+6 -1
View File
@@ -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);
});
});