Staging: this is not the live site, pydocs.org.
Networking and Interprocess Communication
Upgrade an existing stream-based connection to TLS.
Changed in 3.12, 3.15
- 3.12: Added the ssl_shutdown_timeout parameter.
- 3.15: Raises a ValueError if sslcontext.check_hostname is True and server_hostname is not supplied.