KEYCLOAK-17013 Brute force protection: Successfully logged in user should not have to wait up to 5 seconds for event processing (#7748)
This commit is contained in:
parent
4f199c7245
commit
3f088bfd21
1 changed files with 2 additions and 7 deletions
|
@ -295,13 +295,8 @@ public class DefaultBruteForceProtector implements Runnable, BruteForceProtector
|
|||
|
||||
@Override
|
||||
public void successfulLogin(final RealmModel realm, final UserModel user, final ClientConnection clientConnection) {
|
||||
try {
|
||||
SuccessfulLogin event = new SuccessfulLogin(realm.getId(), user.getId(), clientConnection.getRemoteAddr());
|
||||
queue.offer(event);
|
||||
|
||||
event.latch.await(5, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
logger.trace("sent success event");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue