diff options
author | June McEnroe <june@causal.agency> | 2020-05-11 18:05:41 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-11 18:16:19 -0400 |
commit | 548c4a3a86a37cf74aac5ef91f84b9a762dc1023 (patch) | |
tree | 810cdf6ea4d26421f4b2a36f3a35bda745fec628 /pounce.1 | |
parent | Pass -1 as backlog to listen(2) (diff) | |
download | pounce-548c4a3a86a37cf74aac5ef91f84b9a762dc1023.tar.gz pounce-548c4a3a86a37cf74aac5ef91f84b9a762dc1023.zip |
Add server send queueing with time interval
This addresses pounce getting killed with "Excess flood" when it sends NAMES commands for too many channels when a client connects. These commands, as well as automatic AWAY commands, are by default throttled to 5 per second. Tested on freenode with 36 channels and 200ms interval.
Diffstat (limited to '')
-rw-r--r-- | pounce.1 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pounce.1 b/pounce.1 index b61527a..094382d 100644 --- a/pounce.1 +++ b/pounce.1 @@ -1,4 +1,4 @@ -.Dd February 27, 2020 +.Dd May 11, 2020 .Dt POUNCE 1 .Os . @@ -14,6 +14,7 @@ .Op Fl H Ar host .Op Fl K Ar priv .Op Fl P Ar port +.Op Fl Q Ar time .Op Fl S Ar bind .Op Fl U Ar unix .Op Fl W Ar pass @@ -122,6 +123,15 @@ Bind to .Ar port . The default port is 6697. . +.It Fl Q Ar ms , Cm queue-interval = Ar ms +Set the server send queue interval in milliseconds. +The queue is only used +for automated messages sent by +.Nm . +Messages from clients +are sent to the server immediately. +The default interval is 200 milliseconds. +. .It Fl S Ar host , Cm bind = Ar host Bind to source address .Ar host |