From 5ee8f5d9ed5b576191a19091cd80c0a457d05690 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 10 Jan 2005 06:03:38 +0000 Subject: [PATCH] Added two XXXes. --- src/socketDrivers.py | 4 +++- src/twistedDrivers.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/socketDrivers.py b/src/socketDrivers.py index ef322fdd6..fae22abfb 100644 --- a/src/socketDrivers.py +++ b/src/socketDrivers.py @@ -49,7 +49,9 @@ import supybot.world as world import supybot.drivers as drivers import supybot.schedule as schedule -reconnectWaits = (0, 60, 300) +# XXX Shouldn't the reconnect wait (at least the last one) be configurable? +reconnectWaits = [0, 60, 300] + class SocketDriver(drivers.IrcDriver, drivers.ServersMixin): def __init__(self, irc): self.irc = irc diff --git a/src/twistedDrivers.py b/src/twistedDrivers.py index d1fb21daa..7c6706dc3 100644 --- a/src/twistedDrivers.py +++ b/src/twistedDrivers.py @@ -103,6 +103,7 @@ def errorMsg(reason): return reason.getErrorMessage() class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin): + # XXX Shouldn't the maxDelay be configurable? maxDelay = 300 protocol = SupyIrcProtocol def __init__(self, irc): @@ -129,7 +130,8 @@ class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin): protocol = ReconnectingClientFactory.buildProtocol(self, addr) protocol.irc = self.irc return protocol - + + Driver = SupyReconnectingFactory try: