#2486 Reset delay function added. It resets the delay and the retry counter on reconnect.
--- a/runtime/WampClient.py Wed Feb 28 16:10:05 2018 +0100
+++ b/runtime/WampClient.py Mon Mar 19 12:18:07 2018 +0100
@@ -109,6 +109,10 @@
class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
+ def buildProtocol(self, addr):
+ self.resetDelay()
+ return ReconnectingClientFactory.buildProtocol(self, addr)
+
def clientConnectionFailed(self, connector, reason):
print(_("WAMP Client connection failed (%s) .. retrying .." % time.ctime()))
ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)