Increase retries and reduce retry delay (#122)

This commit is contained in:
Et0h 2016-12-24 21:20:40 +00:00
parent cf4d150ede
commit dc5ed86de8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class SyncClientFactory(ClientFactory):
self._timesTried += 1 self._timesTried += 1
self._client.ui.showMessage(getMessage("reconnection-attempt-notification")) self._client.ui.showMessage(getMessage("reconnection-attempt-notification"))
self.reconnecting = True self.reconnecting = True
reactor.callLater(0.1 * (2 ** self._timesTried), connector.connect) reactor.callLater(0.1 * (2 ** min(self._timesTried,5)), connector.connect)
else: else:
message = getMessage("disconnection-notification") message = getMessage("disconnection-notification")
self._client.ui.showErrorMessage(message) self._client.ui.showErrorMessage(message)

View File

@ -46,7 +46,7 @@ MINIMUM_SLOWDOWN_THRESHOLD = 1.3
SLOWDOWN_RESET_THRESHOLD = 0.1 SLOWDOWN_RESET_THRESHOLD = 0.1
DIFFERENT_DURATION_THRESHOLD = 2.5 DIFFERENT_DURATION_THRESHOLD = 2.5
PROTOCOL_TIMEOUT = 12.5 PROTOCOL_TIMEOUT = 12.5
RECONNECT_RETRIES = 10 RECONNECT_RETRIES = 999
SERVER_STATE_INTERVAL = 1 SERVER_STATE_INTERVAL = 1
WARNING_OSD_MESSAGES_LOOP_INTERVAL = 1 WARNING_OSD_MESSAGES_LOOP_INTERVAL = 1
AUTOPLAY_DELAY = 3.0 AUTOPLAY_DELAY = 3.0