From e518891b298e3aa7e3ea36c025333aa31a17009a Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 19 Dec 2022 09:12:23 +0000 Subject: [PATCH] Shorten the keepalive timeout time to 15 seconds. --- rtsp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtsp.c b/rtsp.c index abebb645..02c6c975 100644 --- a/rtsp.c +++ b/rtsp.c @@ -5503,12 +5503,12 @@ void *rtsp_listen_loop(__attribute((unused)) void *arg) { // Thanks to https://holmeshe.me/network-essentials-setsockopt-SO_KEEPALIVE/ for this. - // turn on keepalive stuff -- wait for keepidle + (keepcnt * keepinttvl time) seconds before giving up - // an ETIMEOUT error is returned if the keepalive check fails + // Turn on keepalive stuff -- wait for keepidle + (keepcnt * keepinttvl time) seconds before giving up + // An ETIMEOUT error is returned if the keepalive check fails - int keepAliveIdleTime = 35; // wait this many seconds before checking for a dropped client + int keepAliveIdleTime = 10; // wait this many seconds before checking for a dropped client int keepAliveCount = 5; // check this many times - int keepAliveInterval = 5; // wait this many seconds between checks + int keepAliveInterval = 1; // wait this many seconds between checks #if defined COMPILE_FOR_BSD || defined COMPILE_FOR_OSX