From 38d214bc4f2ef68dfe6859383e12a20ae91e62de Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 22 Nov 2020 18:53:28 +0200 Subject: [PATCH] httpd: do not disable timeout for RTSP 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. Signed-off-by: Thomas Guillem --- 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.11.4.GIT