diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-02-15 19:38:53 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-02-15 19:38:53 +0100 |
commit | dfbb3bec56de399e736e929b96f7750d10e11b4a (patch) | |
tree | b8df5700a2f78d350ff1ea7508fe1bdc8551e48e /src/server/authserver/Server/AuthSession.cpp | |
parent | 7c7029c25c9f07ae6ec14c44cdea75c2cb935499 (diff) |
Core/Auth: Moved expiring bans to background task - no longer blocking queries during login by default running every minute (configurable)
Diffstat (limited to 'src/server/authserver/Server/AuthSession.cpp')
-rw-r--r-- | src/server/authserver/Server/AuthSession.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index acab29a5b86..519cd1f19f7 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -161,10 +161,6 @@ void AuthSession::Start() std::string ip_address = GetRemoteIpAddress().to_string(); TC_LOG_TRACE("session", "Accepted connection from %s", ip_address.c_str()); - // Remove expired ip ban if needed - login might fail for the first time - // but its better than allowing ourselves to be flooded by connections triggering blocking queries - LoginDatabase.Execute(LoginDatabase.GetPreparedStatement(LOGIN_DEL_EXPIRED_IP_BANS)); - PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_IP_INFO); stmt->setString(0, ip_address); stmt->setUInt32(1, inet_addr(ip_address.c_str())); @@ -382,9 +378,6 @@ void AuthSession::LogonChallengeCallback(PreparedQueryResult result) } } - //set expired bans to inactive - LoginDatabase.DirectExecute(LoginDatabase.GetPreparedStatement(LOGIN_UPD_EXPIRED_ACCOUNT_BANS)); - // If the account is banned, reject the logon attempt if (_accountInfo.IsBanned) { |