diff --git a/CHANGES.rst b/CHANGES.rst index 0f96864d..6f87f190 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,5 +1,9 @@ Changes ------- +2.1.2 (2022-03-03) +^^^^^^^^^^^^^^^^^^ +* fix httpsession close call + 2.1.1 (2022-02-10) ^^^^^^^^^^^^^^^^^^ * implement asynchronous non-blocking adaptive retry strategy diff --git a/aiobotocore/__init__.py b/aiobotocore/__init__.py index 96d02e47..84baea77 100644 --- a/aiobotocore/__init__.py +++ b/aiobotocore/__init__.py @@ -12,4 +12,4 @@ __all__ = ['get_session', 'AioSession'] -__version__ = '2.1.1' +__version__ = '2.1.2' diff --git a/aiobotocore/httpsession.py b/aiobotocore/httpsession.py index e078bea1..626f676e 100644 --- a/aiobotocore/httpsession.py +++ b/aiobotocore/httpsession.py @@ -106,10 +106,10 @@ async def __aenter__(self): async def __aexit__(self, exc_type, exc_val, exc_tb): if self._session: await self._session.__aexit__(exc_type, exc_val, exc_tb) + self._session = None async def close(self): - await self._session.__aexit__(None, None, None) - self._session = None + await self.__aexit__(None, None, None) def _get_ssl_context(self): ssl_context = create_urllib3_context()