# HG changeset patch # User dporopat # Date 1521458287 -3600 # Node ID 259df9ecf9ca176c0cc2102c5405003416562d58 # Parent 67f0d7ff7d3eb6fffd80d6b7788110455d0e89b2 #2486 Reset delay function added. It resets the delay and the retry counter on reconnect. diff -r 67f0d7ff7d3e -r 259df9ecf9ca runtime/WampClient.py --- 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)