Skip to content

Commit

Permalink
Merge pull request #16 from mujin/poolSize20230628
Browse files Browse the repository at this point in the history
Increase the default pool size for UnixSocketAdapter
  • Loading branch information
ziyan committed Jul 18, 2023
2 parents 09bd9ba + 79158f5 commit e072c32
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.7.0 (2023-06-28)

- Set the default pool size to 10 for `UnixSocketConnectionPool`.


# 0.6.1 (2023-07-17)

- Print download directory when downloading scene files.
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.6.1'
__version__ = '0.7.0'

# Do not forget to update CHANGELOG.md

0 comments on commit e072c32

Please sign in to comment.