From a1e6cdcf2991acf0d5a2e5f0b5121ad598fa1f3f Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 15 Dec 2019 07:36:50 +0100 Subject: [PATCH] Attempt to fix broken pipe error --- resources/lib/plex_companion.py | 2 +- resources/lib/plexbmchelper/listener.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/plex_companion.py b/resources/lib/plex_companion.py index 53a73c4c..ad9ae747 100644 --- a/resources/lib/plex_companion.py +++ b/resources/lib/plex_companion.py @@ -293,7 +293,7 @@ class PlexCompanion(backgroundthread.KillableThread): subscription_manager, ('', v.COMPANION_PORT), listener.MyHandler) - httpd.timeout = 0.95 + httpd.timeout = 10.0 break except Exception: LOG.error("Unable to start PlexCompanion. Traceback:") diff --git a/resources/lib/plexbmchelper/listener.py b/resources/lib/plexbmchelper/listener.py index 00b0cb4b..a5c6ecd1 100644 --- a/resources/lib/plexbmchelper/listener.py +++ b/resources/lib/plexbmchelper/listener.py @@ -37,6 +37,7 @@ RESOURCES_XML = ('%s\n' v.PLATFORM, v.PLATFORM_VERSION) + class MyHandler(BaseHTTPRequestHandler): """ BaseHTTPRequestHandler implementation of Plex Companion listener