mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Change default flood rates to match RFC1459, prevent excess flood problems
I noticed that the default network flood rates are wrong (for most networks). It has been very standard since the beginning of IRC to use a value of 2 seconds per line, with a 10 line head start. Almost all networks work this way, and if you don't follow, having a lot of channels or a lot of clients connected to ZNC results in excess flood disconnections and much frustration for the user. I think you should make the default value for these 2 and 9 instead of 1 and 4 so that this nasty bug doesn't hit people who will not know how to debug it. You find these same types of settings built into every IRC client. 2 and 10 is the standard. 2 and 9 provides a slight buffer so there is no mistake. Thanks -Rubin Close #1416
This commit is contained in:
@@ -152,8 +152,8 @@ CIRCNetwork::CIRCNetwork(CUser* pUser, const CString& sName)
|
||||
m_uServerIdx(0),
|
||||
m_IRCNick(),
|
||||
m_bIRCAway(false),
|
||||
m_fFloodRate(1),
|
||||
m_uFloodBurst(4),
|
||||
m_fFloodRate(2),
|
||||
m_uFloodBurst(9),
|
||||
m_RawBuffer(),
|
||||
m_MotdBuffer(),
|
||||
m_NoticeBuffer(),
|
||||
|
||||
Reference in New Issue
Block a user