From 5c4fba653f0726b2fce60459c87c1ed9c425aa98 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 10 Oct 2018 22:39:30 -0700 Subject: [PATCH] IRCNetwork: disable throttling by default On large networks, this seems to slows down relay bursts to the point they're no longer usable. --- classes.py | 2 +- example-conf.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes.py b/classes.py index 16f02b1..a97126d 100644 --- a/classes.py +++ b/classes.py @@ -1931,7 +1931,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils): def _process_queue(self): """Loop to process outgoing queue data.""" while True: - throttle_time = self.serverdata.get('throttle_time', 0.005) + throttle_time = self.serverdata.get('throttle_time', 0) if not self._aborted.wait(throttle_time): data = self._queue.get() if data is None: diff --git a/example-conf.yml b/example-conf.yml index 2ee27da..bd43d81 100644 --- a/example-conf.yml +++ b/example-conf.yml @@ -472,7 +472,7 @@ servers: # Message throttling: when set to a non-zero value, only one message will be sent every X # seconds. If your bot is constantly running into Excess Flood errors, raising this to - # something like 0.5 or 1.0 should help. Defaults to 0.005 if not set. + # something like 0.5 or 1.0 should help. Since PyLink 2.0.2, this defaults to 0 if not set. throttle_time: 0.3 # Determines whether messages from unknown clients (servers, clients not sharing in a -n