gh-124984: Enhance ssl thread safety (#124993)

Make SSL objects thread safe in Free Theaded build by
using critical sections.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
Peter Bierma 2024-10-19 17:16:36 -04:00 committed by GitHub
parent 2a378dba98
commit 4c53b25775
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1698 additions and 246 deletions

View file

@ -0,0 +1 @@
Fixed thread safety in :mod:`ssl` in the free-threaded build. OpenSSL operations are now protected by a per-object lock.