We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2264e commit 5958f59Copy full SHA for 5958f59
1 file changed
pymongo/pool_shared.py
@@ -73,7 +73,9 @@ def _get_ssl_session(ssl_sock: Any) -> Optional[Any]:
73
return getattr(ssl_sock, "session", None)
74
75
76
-# asyncio's SSLProtocol does not expose a session= parameter in create_connection.
+# asyncio's create_connection does not support TLS session resumption natively.
77
+# https://github.com/python/cpython/issues/79152 tracks this; a patch was submitted
78
+# in 2018 but never merged, and the issue is now closed.
79
# On Python 3.11+, wrap_bio() is called in SSLProtocol.__init__ and the handshake
80
# starts later in connection_made(), so we can set sslobj.session between the two.
81
# On older Python, _SSLPipe.do_handshake calls wrap_bio and starts the handshake
0 commit comments