opendnssec / SoftHSMv2

SoftHSM version 2
http://www.softhsm.org/
Other
740 stars 335 forks source link

Limit number of sessions #710

Open istepic opened 1 year ago

istepic commented 1 year ago

When SoftHSMv2 is used for testing PKCS#11 client code before hardware is available, maximum session count on a token needs to be set in order to detects bugs in client code where sessions are leaked and remain open. This can cause problems since most hardware implementations have a limit on opened sessions count.

This change sets a limit to general session count.

nomis commented 7 months ago

Shouldn't this default to the original value or be runtime configurable?

Those of us using this entirely in software don't want arbitrary low session limits.