Cdm: Reduce maximum concurrent sessions to 16

It seems 16 is the more common limit on moderm OEM Crypto API systems (at least L1). It's also a more reasonable limit.

This also encourages people to .close() their session more. It also makes it quicker to notice if a codebase is forgetting to do a .close() call somewhere as you will reach the limit faster and easier now.

In normal use cases, a limit of 16 sessions will not be a problem as long as the sessions are being closed correctly.
This commit is contained in:
rlaphoenix 2022-09-28 07:54:09 +01:00
parent 74f960aeba
commit eaa26399e0
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class Cdm:
root_cert = DrmCertificate() root_cert = DrmCertificate()
root_cert.ParseFromString(root_signed_cert.drm_certificate) root_cert.ParseFromString(root_signed_cert.drm_certificate)
MAX_NUM_OF_SESSIONS = 50 # most common limit MAX_NUM_OF_SESSIONS = 16
def __init__( def __init__(
self, self,