From 74e90ef7b5310f736a9e4b4aba28d21203b1f823 Mon Sep 17 00:00:00 2001 From: Sergey Shilov <31342446+sergey-shilov@users.noreply.github.com> Date: Wed, 17 Jan 2018 15:38:29 +0300 Subject: [PATCH] INDY-1087: add appending of CLIENT_CONNECTIONS_LIMIT to env file by writeNodeParamsFile() function. (#501) Signed-off-by: Sergey Shilov --- plenum/common/test_network_setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plenum/common/test_network_setup.py b/plenum/common/test_network_setup.py index 414e3dc8d2..df84355839 100644 --- a/plenum/common/test_network_setup.py +++ b/plenum/common/test_network_setup.py @@ -20,6 +20,9 @@ from stp_core.common.util import adict +CLIENT_CONNECTIONS_LIMIT = 15360 + + class TestNetworkSetup: @staticmethod def getNumberFromName(name: str) -> int: @@ -45,7 +48,8 @@ def writeNodeParamsFile(filePath, name, nPort, cPort): contents = [ 'NODE_NAME={}'.format(name), 'NODE_PORT={}'.format(nPort), - 'NODE_CLIENT_PORT={}'.format(cPort) + 'NODE_CLIENT_PORT={}'.format(cPort), + 'CLIENT_CONNECTIONS_LIMIT={}'.format(CLIENT_CONNECTIONS_LIMIT) ] with open(filePath, 'w') as f: f.writelines(os.linesep.join(contents))