spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

carrier thread be suspended by synchronized in RemoteJWKSet

Open me0106 opened this issue 4 months ago • 2 comments

RemoteJWKSet use synchronized for synchronization. But this will suspend the carrier thread. In some specific situations, it may cause the server to hang:

single carrier thread.(Single core CPU). And call itself to retrieve jwk.

RemoteJWKSet is deprecated. Should we replace it with JwkSourceBuilder?

SpringBoot: 3.3.1 Java: Temurin-21.0.4+7

image image

me0106 avatar Sep 30 '24 06:09 me0106