From 9001bd9187e20ae3795a380304d936d3fc28672c Mon Sep 17 00:00:00 2001 From: Barkin Simsek Date: Wed, 28 Jun 2023 19:57:32 +0900 Subject: [PATCH] Increase the default pool size. --- CHANGELOG.md | 5 +++++ python/mujinwebstackclient/unixsocketadapter.py | 4 ++-- python/mujinwebstackclient/version.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bc90c5..3f65a2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.5.1 (2023-06-28) + +- Set the default pool size to 10 for `UnixSocketConnectionPool`. + + # 0.5.0 (2023-04-18) - Support HTTP over Unix domain socket via optional `unixEndpoint` argument. diff --git a/python/mujinwebstackclient/unixsocketadapter.py b/python/mujinwebstackclient/unixsocketadapter.py index e4162e4..5c7743f 100644 --- a/python/mujinwebstackclient/unixsocketadapter.py +++ b/python/mujinwebstackclient/unixsocketadapter.py @@ -40,8 +40,8 @@ class UnixSocketConnectionPool(HTTPConnectionPool): _unixEndpoint = None # unix socket endpoint - def __init__(self, unixEndpoint): - super(UnixSocketConnectionPool, self).__init__('127.0.0.1') + def __init__(self, unixEndpoint, maxSize=10): + super(UnixSocketConnectionPool, self).__init__('127.0.0.1', maxsize=maxSize) UnixSocketConnectionPool.ConnectionCls = functools.partial(UnixSocketHTTPConnection, unixEndpoint=unixEndpoint) self._unixEndpoint = unixEndpoint diff --git a/python/mujinwebstackclient/version.py b/python/mujinwebstackclient/version.py index 9c9db50..bc2c77e 100644 --- a/python/mujinwebstackclient/version.py +++ b/python/mujinwebstackclient/version.py @@ -1,4 +1,4 @@ -__version__ = '0.5.0' +__version__ = '0.5.1' # Do not forget to update CHANGELOG.md