1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Disable extra ircnet flood protection if cmd_queue_speed <= 10

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3116 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-06-25 19:30:19 +00:00 committed by cras
parent 1359b7cc57
commit b729120ca4

View File

@ -325,7 +325,7 @@ void irc_server_send_data(IRC_SERVER_REC *server, const char *data, int len)
actually is 1sec / 100 bytes penalty, but we rather want to deal actually is 1sec / 100 bytes penalty, but we rather want to deal
with the max. 1000 bytes input buffer problem. If we send more with the max. 1000 bytes input buffer problem. If we send more
than that with the burst, we'll get excess flooded. */ than that with the burst, we'll get excess flooded. */
if (len < 100) if (len < 100 || server->cmd_queue_speed <= 10)
server->wait_cmd.tv_sec = 0; server->wait_cmd.tv_sec = 0;
else { else {
memcpy(&server->wait_cmd, &server->last_cmd, sizeof(GTimeVal)); memcpy(&server->wait_cmd, &server->last_cmd, sizeof(GTimeVal));