ssl — TLS/SSL wrapper for socket objects — Python 3.11.16 documentation

docs.python.org

Tin mới

socket — Low-level networking interface

select — Waiting for I/O completion

Python Module Index

3.11.16 Documentation

The Python Standard Library

Networking and Interprocess Communication

WebAssembly platforms

This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly platforms for more information.

NotImplementedError

Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the method raises NotImplementedError.

selectors: High-level I/O multiplexing.

Conversely, since the SSL layer has its own framing, a SSL socket may still have data available for reading without select() being aware of it. Therefore, you should first call SSLSocket.recv() to drain any potentially a

asyncio: Asynchronous I/O.

The asyncio module supports non-blocking SSL sockets and provides a higher level API. It polls for events using the selectors module and handles SSLWantWriteError, SSLWantReadError and BlockingIOError exceptions. It runs

multiprocessing: Process-based parallelism.

concurrent.futures