Skip to content

carrier thread be suspended by synchronized in RemoteJWKSet #15866

Closed
@me0106

Description

@me0106

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions