@@ -969,6 +969,8 @@ async def _wrap_create_connection(
969
969
raise ClientConnectorCertificateError (req .connection_key , exc ) from exc
970
970
except ssl_errors as exc :
971
971
raise ClientConnectorSSLError (req .connection_key , exc ) from exc
972
+ except asyncio .TimeoutError :
973
+ raise
972
974
except OSError as exc :
973
975
raise client_error (req .connection_key , exc ) from exc
974
976
@@ -1048,6 +1050,8 @@ async def _start_tls_connection(
1048
1050
raise ClientConnectorCertificateError (req .connection_key , exc ) from exc
1049
1051
except ssl_errors as exc :
1050
1052
raise ClientConnectorSSLError (req .connection_key , exc ) from exc
1053
+ except asyncio .TimeoutError :
1054
+ raise
1051
1055
except OSError as exc :
1052
1056
raise client_error (req .connection_key , exc ) from exc
1053
1057
except TypeError as type_err :
@@ -1099,6 +1103,8 @@ def drop_exception(fut: "asyncio.Future[List[Dict[str, Any]]]") -> None:
1099
1103
1100
1104
host_resolved .add_done_callback (drop_exception )
1101
1105
raise
1106
+ except asyncio .TimeoutError :
1107
+ raise
1102
1108
except OSError as exc :
1103
1109
# in case of proxy it is not ClientProxyConnectionError
1104
1110
# it is problem of resolving proxy ip itself
@@ -1292,6 +1298,8 @@ async def _create_connection(
1292
1298
_ , proto = await self ._loop .create_unix_connection (
1293
1299
self ._factory , self ._path
1294
1300
)
1301
+ except asyncio .TimeoutError :
1302
+ raise
1295
1303
except OSError as exc :
1296
1304
raise UnixClientConnectorError (self .path , req .connection_key , exc ) from exc
1297
1305
@@ -1357,6 +1365,8 @@ async def _create_connection(
1357
1365
await asyncio .sleep (0 )
1358
1366
# other option is to manually set transport like
1359
1367
# `proto.transport = trans`
1368
+ except asyncio .TimeoutError :
1369
+ raise
1360
1370
except OSError as exc :
1361
1371
raise ClientConnectorError (req .connection_key , exc ) from exc
1362
1372
0 commit comments