mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +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:
parent
dac8410b63
commit
5c4fba653f
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user