From 780817840f718500063579056081cfc1526f16bb Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 7 May 2019 12:59:36 -0700 Subject: [PATCH] A better login cooldown. --- server/src/websocket/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index cd931e1f..abdf9ea9 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -20,8 +20,8 @@ use api::site::*; const RATE_LIMIT_MESSAGES: i32 = 30; const RATE_LIMIT_PER_SECOND: i32 = 60; -const RATE_LIMIT_REGISTER_MESSAGES: i32 = 1; -const RATE_LIMIT_REGISTER_PER_SECOND: i32 = 60; +const RATE_LIMIT_REGISTER_MESSAGES: i32 = 3; +const RATE_LIMIT_REGISTER_PER_SECOND: i32 = 60*3; /// Chat server sends this messages to session -- 2.44.1