Skip to content

Commit

Permalink
[3.12] gh-118596: Add thread-safety clarifications to the SSLContext …
Browse files Browse the repository at this point in the history
…documentation (GH-118597) (#120596)

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](psf/requests#6667) where the matter was clarified by @tiran in [this comment](psf/requests#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>

CPython-sync-commit-latest: 7abfc92c8bb6dd75b7a82f6fadd919af6522406d
  • Loading branch information
github-actions[bot] committed Jun 16, 2024
1 parent fa10dd4 commit a7fac0c
Showing 1 changed file with 230 additions and 222 deletions.
Loading

0 comments on commit a7fac0c

Please sign in to comment.