]> granicus.if.org Git - ngircd/commitdiff
Don't throttle services and servers beeing registered
authorAlexander Barton <alex@barton.de>
Wed, 29 Dec 2010 13:12:34 +0000 (14:12 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 29 Dec 2010 13:12:34 +0000 (14:12 +0100)
src/ngircd/conn.c

index 9daca8531b34bef97a30d63290fdd1eee7df4498..73a66bbb469cdc8f72d33574144b0ee3e1e7f293 100644 (file)
@@ -1517,6 +1517,8 @@ Read_Request( CONN_ID Idx )
        /* Look at the data in the (read-) buffer of this connection */
        My_Connections[Idx].bps += Handle_Buffer(Idx);
        if (Client_Type(c) != CLIENT_SERVER
+           && Client_Type(c) != CLIENT_UNKNOWNSERVER
+           && Client_Type(c) != CLIENT_SERVICE
            && My_Connections[Idx].bps >= maxbps) {
                LogDebug("Throttling connection %d: BPS exceeded! (%u >= %u)",
                         Idx, My_Connections[Idx].bps, maxbps);