Quellcode durchsuchen

Tweak connect burst to be even faster/deeper

Bryan Drewery vor 7 Jahren
Ursprung
Commit
b06a9b1cc7
3 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 1 0
      doc/UPDATES.md
  2. 1 1
      src/mod/server.mod/server.cc
  3. 1 1
      src/mod/server.mod/servmsg.cc

+ 1 - 0
doc/UPDATES.md

@@ -12,6 +12,7 @@
   * Some small performance improvements.
   * CPRIVMSG/CNOTICE/TIME/TOPIC/OPER should end connection bursting on ratbox.
   * Fix server connect bursting for joining channels with help from other bots.
+  * Tweak server connect burst to progress quicker.
 
 # maint
   * Clear FiSH keys when a client quits.

+ 1 - 1
src/mod/server.mod/server.cc

@@ -131,7 +131,7 @@ static bind_table_t *BT_raw = NULL, *BT_msg = NULL;
 bind_table_t *BT_ctcr = NULL, *BT_ctcp = NULL;
 // Ratbox is (5*8):30, ircd-seven is (5*8):20, try to not push th elimits.
 #define SERVER_CONNECT_BURST_TIME 18
-#define SERVER_CONNECT_BURST_RATE 5 * 7
+#define SERVER_CONNECT_BURST_RATE 5 * 8
 
 #include "servmsg.cc"
 

+ 1 - 1
src/mod/server.mod/servmsg.cc

@@ -339,7 +339,7 @@ got004(char *from, char *msg)
   if (!replaying_cache && connect_burst) {
     connect_bursting = now;
     msgburst = SERVER_CONNECT_BURST_RATE;
-    msgrate = 200;
+    msgrate = 0;
     reset_flood();
     putlog(LOG_DEBUG, "*", "Server allows connect bursting, bursting for %d seconds", SERVER_CONNECT_BURST_TIME);
   }