Increase timeout on rtsp session
This commit is contained in:
1 file changed
+6
-1
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user