diff options
author | morpheus65535 <[email protected]> | 2021-05-18 23:05:23 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-05-18 23:05:23 -0400 |
commit | c8e02e280a2a9157391dc37802fc3ebe71bfa070 (patch) | |
tree | eb4f1a2e181b6457ee33b6747891df65cdc0233f | |
parent | bf8c4caef7d4f819e2f5704b345c3d056ca103a9 (diff) | |
download | bazarr-c8e02e280a2a9157391dc37802fc3ebe71bfa070.tar.gz bazarr-c8e02e280a2a9157391dc37802fc3ebe71bfa070.zip |
Tweaked the Radarr SignalR feed keep-alive and reconnection intervals.v0.9.6-beta.9
-rw-r--r-- | bazarr/signalr_client.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bazarr/signalr_client.py b/bazarr/signalr_client.py index 305c11c48..5657281db 100644 --- a/bazarr/signalr_client.py +++ b/bazarr/signalr_client.py @@ -39,7 +39,8 @@ class SonarrSignalrClient: except ConnectionError: gevent.sleep(5) except json.decoder.JSONDecodeError: - logging.error('BAZARR cannot parse JSON returned by SignalR feed.') + logging.error('BAZARR cannot parse JSON returned by SignalR feed. Take a look at: ' + 'https://forums.sonarr.tv/t/signalr-problem/5785/3') self.stop() logging.info('BAZARR SignalR client for Sonarr is connected and waiting for events.') if not args.dev: @@ -117,8 +118,8 @@ class RadarrSignalrClient: }) \ .with_automatic_reconnect({ "type": "raw", - "keep_alive_interval": 5, - "reconnect_interval": 5, + "keep_alive_interval": 15, + "reconnect_interval": 180, "max_attempts": None }).build() self.connection.on_open(self.on_connect_handler) |