Skip to content

Commit

Permalink
fix: Convert REQUESTS_POOL_MAXSIZE to int
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 24, 2022
1 parent 289bc1c commit c470259
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions docs/changelog.rst
@@ -1,21 +1,26 @@
Changelog
=========

0.1.9 (2022-01-20)
------------------

- fix: Convert the ``REQUESTS_POOL_MAXSIZE`` environment variable to ``int``.

0.1.8 (2022-01-20)
------------------

- Fix the default value for an extension's ``release-schema.json`` file.
- fix: Fix the default value for an extension's ``release-schema.json`` file.

0.1.7 (2022-01-12)
------------------

- Use the ``REQUESTS_POOL_MAXSIZE`` environment variable to set the maximum number of connections to save in the `connection pool <https://urllib3.readthedocs.io/en/latest/advanced-usage.html#customizing-pool-behavior>`__.
- feat: Use the ``REQUESTS_POOL_MAXSIZE`` environment variable to set the maximum number of connections to save in the `connection pool <https://urllib3.readthedocs.io/en/latest/advanced-usage.html#customizing-pool-behavior>`__.
- Drop support for Python 3.6 (end-of-life 2021-12-23).

0.1.6 (2021-11-29)
------------------

- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.remote` returns the ``default`` argument, if provided, if the file does not exist.
- feat: :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.remote` returns the ``default`` argument, if provided, if the file does not exist.

0.1.5 (2021-11-24)
------------------
Expand Down
2 changes: 1 addition & 1 deletion ocdsextensionregistry/util.py
Expand Up @@ -18,7 +18,7 @@

# https://2.python-requests.org/projects/3/api/#requests.adapters.HTTPAdapter
# https://urllib3.readthedocs.io/en/latest/advanced-usage.html#customizing-pool-behavior
adapter = HTTPAdapter(pool_maxsize=os.getenv('REQUESTS_POOL_MAXSIZE', 10))
adapter = HTTPAdapter(pool_maxsize=int(os.getenv('REQUESTS_POOL_MAXSIZE', 10)))
session = CachedSession(backend='memory')
session.mount('https://', adapter)
session.mount('http://', adapter)
Expand Down

0 comments on commit c470259

Please sign in to comment.