From 388e4696ff88430eda2bc894cb4fa21ded7988e8 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 9 Jul 2021 23:45:59 -0500 Subject: [PATCH] Increase default ping timeout to 10 seconds During periods of poor connectivity, the ping timeout of 2 seconds can easily be exceeded, especially with ENet's RTO backoff active. This causes an unnecessary disconnection when the connection would have recovered on its own in a few seconds. Increasing the timeout to 10 seconds should prevent spurious disconnections in most cases. --- assets/sunshine.conf | 2 +- assets/web/config.html | 2 +- sunshine/config.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/sunshine.conf b/assets/sunshine.conf index 1b82910e..103f44b0 100644 --- a/assets/sunshine.conf +++ b/assets/sunshine.conf @@ -78,7 +78,7 @@ # ] # How long to wait in milliseconds for data from moonlight before shutting down the stream -# ping_timeout = 2000 +# ping_timeout = 10000 # The file where configuration for the different applications that Sunshine can run during a stream # file_apps = apps.json diff --git a/assets/web/config.html b/assets/web/config.html index a4a39c58..0f0abb6b 100644 --- a/assets/web/config.html +++ b/assets/web/config.html @@ -55,7 +55,7 @@
-
How long to wait in milliseconds for data from moonlight before shutting down the stream
diff --git a/sunshine/config.cpp b/sunshine/config.cpp index b7c258f3..f8cc735d 100644 --- a/sunshine/config.cpp +++ b/sunshine/config.cpp @@ -176,7 +176,7 @@ video_t video { audio_t audio {}; stream_t stream { - 2s, // ping_timeout + 10s, // ping_timeout APPS_JSON_PATH,