Skip to content

Commit

Permalink
fix connect timeout while getting IAM creds in Docker (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiudirog authored Jun 8, 2022
1 parent a5920f6 commit 14f2dd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changes
-------
2.3.4 (2022-05-20)
^^^^^^^^^^^^^^^^^^
* fix connect timeout while getting IAM creds

2.3.3 (2022-05-09)
^^^^^^^^^^^^^^^^^^
* fix Test files appearing in distribution package
Expand Down
2 changes: 1 addition & 1 deletion aiobotocore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.3.3'
__version__ = '2.3.4'
5 changes: 4 additions & 1 deletion aiobotocore/httpsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ async def send(self, request):
endpoint_url=request.url
)
except ServerTimeoutError as e:
raise ConnectTimeoutError(endpoint_url=request.url, error=e)
if str(e).lower().startswith('connect'):
raise ConnectTimeoutError(endpoint_url=request.url, error=e)
else:
raise ReadTimeoutError(endpoint_url=request.url, error=e)
except (ClientConnectorError, ClientConnectionError, socket.gaierror) as e:
raise EndpointConnectionError(endpoint_url=request.url, error=e)
except asyncio.TimeoutError as e:
Expand Down

0 comments on commit 14f2dd1

Please sign in to comment.