[vlc-devel] [PATCH 5/5] httpd: do not disable timeout for RTSP
remi at remlab.net
remi at remlab.net
Sun Nov 22 17:53:28 CET 2020
From: RĂ©mi Denis-Courmont <remi at remlab.net>
Use the same timeout for the RTSP connection as for the RTSP session.
A shorter timeout is inefficient, as it requires clients to reconnect
to refresh the session anyway. A longer timeout is pointless as the
session would timeout and the RTP streams would stop regardless of the
connection staying alive.
---
src/network/httpd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 9a0a352566..2f7f20c362 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -917,8 +917,8 @@ httpd_host_t *vlc_https_HostNew(vlc_object_t *obj)
httpd_host_t *vlc_rtsp_HostNew(vlc_object_t *p_this)
{
- /* XXX: for QT I have to disable timeout. Try to find why */
- return httpd_HostCreate(p_this, "rtsp-host", "rtsp-port", NULL, 0);
+ unsigned timeout = var_InheritInteger(p_this, "rtsp-timeout");
+ return httpd_HostCreate(p_this, "rtsp-host", "rtsp-port", NULL, timeout);
}
static struct httpd
--
2.29.2
More information about the vlc-devel
mailing list