1

I put the Pyro4 configuration as this in the starting part of my code: Pyro4.config.THREADPOOL_SIZE = 1 Pyro4.config.THREADPOOL_SIZE_MIN = 1

I check if I tried to run two client code at the same time, it will say ' rejected: no free workers, increase server threadpool size'. It looks like the setting is working, but when I open the console to check the pyro configuration using "python -m Pyro4.configuration", it returns: THREADPOOL_SIZE = 40 THREADPOOL_SIZE_MIN = 4

Does someone know why?

4

1 回答 1

0

当您运行时python -m Pyro4.configuration,它只会打印默认设置(仅受您可能设置的任何环境变量的影响)。我不确定您为什么认为这应该知道您在自己的代码中添加的设置。

于 2018-09-18T21:32:13.470 回答