3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

IRCNetwork: disable throttling by default

On large networks, this seems to slows down relay bursts to the point they're no longer usable.
This commit is contained in:
James Lu 2018-10-10 22:39:30 -07:00
parent dac8410b63
commit 5c4fba653f
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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