Skip to content

Lock congestion in DefaultVOMSValidationStrategy #22

@gbehrmann

Description

@gbehrmann

Hi,

The method DefaultVOMSValidationStrategy#validateAC(VOMSAttribute attributes, X509Certificate[] chain) is synchronized, meaning that for an instance of the strategy, at most a single attribute certificate can be validated at a time. If one reuses the same DefaultVOMSValidator, this synchronization leads to lock congestion when used from many threads.

I wonder whether this synchronization is really necessary - it isn't obvious to me from the code why it is synchronized. In particular the method of the same name but without the certificate chain is not synchronized.

Cheers,

/gerd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions