mirror of
				https://github.com/devine-dl/pywidevine.git
				synced 2025-11-04 03:44:50 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									74f960aeba
								
							
						
					
					
						commit
						eaa26399e0
					
				@ -62,7 +62,7 @@ class Cdm:
 | 
			
		||||
    root_cert = DrmCertificate()
 | 
			
		||||
    root_cert.ParseFromString(root_signed_cert.drm_certificate)
 | 
			
		||||
 | 
			
		||||
    MAX_NUM_OF_SESSIONS = 50  # most common limit
 | 
			
		||||
    MAX_NUM_OF_SESSIONS = 16
 | 
			
		||||
 | 
			
		||||
    def __init__(
 | 
			
		||||
        self,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user