Skip to content

Commit

Permalink
Increase the default pool size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barkin Simsek committed Jun 28, 2023
1 parent e99b400 commit 9001bd9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions python/mujinwebstackclient/unixsocketadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion python/mujinwebstackclient/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.5.0'
__version__ = '0.5.1'

# Do not forget to update CHANGELOG.md

0 comments on commit 9001bd9

Please sign in to comment.