Skip to content

Commit

Permalink
Tweaked the Radarr SignalR feed keep-alive and reconnection intervals.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed May 19, 2021
1 parent bf8c4ca commit c8e02e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bazarr/signalr_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def start(self):
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:
Expand Down Expand Up @@ -117,8 +118,8 @@ def configure(self):
}) \
.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)
Expand Down

0 comments on commit c8e02e2

Please sign in to comment.