Skip to content

Commit 9bfab23

Browse files
committed
Re-include the older check
1 parent b071ced commit 9bfab23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

aiohttp/connector.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,11 @@ def _warn_about_tls_in_tls(
11561156
return
11571157

11581158
# Support in asyncio was added in Python 3.11 (bpo-44011)
1159-
asyncio_supports_tls_in_tls = sys.version_info >= (3, 11)
1159+
asyncio_supports_tls_in_tls = sys.version_info >= (3, 11) or getattr(
1160+
underlying_transport,
1161+
"_start_tls_compatible",
1162+
False,
1163+
)
11601164

11611165
if asyncio_supports_tls_in_tls:
11621166
return

0 commit comments

Comments
 (0)