diff --git a/pyproject.toml b/pyproject.toml index 7b6da73..a2991ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "srpcLib" -version = "4.4.3" +version = "4.4.4" description = "SRPC is an experimental RPC framework that uses Python as its Interface Definition Language" authors = [{ name="Oseas Andre", email="oseasandrepro@gmail.com" }] dependencies = ["msgpack==1.2.1", "mypy==2.3.0"] diff --git a/srpcLib/stub_generator/python/server_python_stub_generator.py b/srpcLib/stub_generator/python/server_python_stub_generator.py index fe07f89..eab22ee 100644 --- a/srpcLib/stub_generator/python/server_python_stub_generator.py +++ b/srpcLib/stub_generator/python/server_python_stub_generator.py @@ -98,10 +98,9 @@ def __init__(self, tls_config: SrpcTLSConfig = None, host:str=None, num_threads self.__CONNECTION_PORT = {DEFAULT_CONNECTION_PORT} - self.__handler_threads_pool = ThreadPoolExecutor(num_threads) + self.__handler_threads_pool = ThreadPoolExecutor(max_workers=num_threads) self.__listner_thread = None - self.__handler_threads_pool = ThreadPoolExecutor(max_workers=10) self.__stop_event = threading.Event() self.__serializer = SrpcSerializer() self.__lib_procs = {service_class_name}()