Skip to content

Commit 0f13c5e

Browse files
committed
AbstractUserDetailsReactiveAuthenticationManager uses boundidElastic()
Some JVMs have blocking operations when accessing SecureRandom and thus this needs to be performed in a pool that is larger than the number of CPUs Closes gh-7522
1 parent 06a02ed commit 0f13c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/springframework/security/authentication/AbstractUserDetailsReactiveAuthenticationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public abstract class AbstractUserDetailsReactiveAuthenticationManager implement
5555

5656
private ReactiveUserDetailsPasswordService userDetailsPasswordService;
5757

58-
private Scheduler scheduler = Schedulers.newParallel("password-encoder", Schedulers.DEFAULT_POOL_SIZE, true);
58+
private Scheduler scheduler = Schedulers.boundedElastic();
5959

6060
private UserDetailsChecker preAuthenticationChecks = user -> {
6161
if (!user.isAccountNonLocked()) {

0 commit comments

Comments
 (0)