Increase retries and reduce retry delay (#122)
This commit is contained in:
parent
cf4d150ede
commit
dc5ed86de8
@ -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)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user