How to control the max es_clients for system extension endpoint (ES_NEW_CLIENT_RESULT_ERR_TOO_MANY_CLIENTS)

I noticed when I create multiple clients in my swift endpoint project, everything is great. But when I call the below in my C/C++ project

es_new_client

More than once I get the following result

ES_NEW_CLIENT_RESULT_ERR_TOO_MANY_CLIENTS

How do I control the max number of clients for a specific project?
How to control the max es_clients for system extension endpoint (ES_NEW_CLIENT_RESULT_ERR_TOO_MANY_CLIENTS)
 
 
Q