]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-118596: Add thread-safety clarifications to the SSLContext documentation...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 16 Jun 2024 20:43:20 +0000 (22:43 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jun 2024 20:43:20 +0000 (20:43 +0000)
commit7655989a3a777339586a48242677b8bb9cec4c92
tree098762cb495a26271030e7094e4e9f1e9f5fc6f0
parent1c41aa78d85ee9224cc8609302f7a9b47c6186be
[3.13] gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597) (#120595)

gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597)

Add thread-safety clarifications to the SSLContext documentation. Per the issue:

This issue has also come up [here](https://github.com/psf/requests/pull/6667) where the matter was clarified by @tiran in [this comment](https://github.com/psf/requests/pull/6667):
> `SSLContext` is designed to be shared and used for multiple connections. It is thread safe as long as you don't reconfigure it once it is used by a connection. Adding new certs to the internal trust store is fine, but changing ciphers, verification settings, or mTLS certs can lead to surprising behavior. The problem is unrelated to threads and can even occur in a single-threaded program.
(cherry picked from commit 4f59f8638267aa64ad2daa0111d8b7fdc2499834)

Co-authored-by: mm-matthias <43849132+mm-matthias@users.noreply.github.com>
Doc/library/ssl.rst