Increase anti-flood-delay from 0.5 to 1 second.
authorAlexander van Gessel <ai0867@gmail.com>
Wed, 15 May 2013 12:50:45 +0000 (14:50 +0200)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 15 May 2013 12:53:52 +0000 (08:53 -0400)
With a delay of 0.5 seconds, freenode starts dropping messages
bunched in large groups after about 18 of them.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
irkerd

diff --git a/irkerd b/irkerd
index 391ff3699cbe8af728886d865b9cd5089b0bd12c..bbdfb87f02d35aae7975b8045aeeb6eabddc58e2 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -38,7 +38,7 @@ CHANNEL_TTL = (3 * 60 * 60)   # Time to live, seconds from last transmit
 DISCONNECT_TTL = (24 * 60 * 60)        # Time to live, seconds from last connect
 UNSEEN_TTL = 60                        # Time to live, seconds since first request
 CHANNEL_MAX = 18               # Max channels open per socket (default)
-ANTI_FLOOD_DELAY = 0.5         # Anti-flood delay after transmissions, seconds
+ANTI_FLOOD_DELAY = 1.0         # Anti-flood delay after transmissions, seconds
 ANTI_BUZZ_DELAY = 0.09         # Anti-buzz delay after queue-empty check
 CONNECTION_MAX = 200           # To avoid hitting a thread limit