mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
* [3.14] gh-134698: Hold a lock when the thread state is detached in `ssl` (GH-134724)
Lock when the thread state is detached.
(cherry picked from commit e047a35b23)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Only lock the SSL context, not the SSL socket.
This solves a deadlock when a socket is blocked while waiting on data,
which ended up causing a major regression in 3.13.6 (see gh-137583).
---------
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 lines
111 B
ReStructuredText
2 lines
111 B
ReStructuredText
Fix a crash when calling methods of :class:`ssl.SSLContext` or
|
|
:class:`ssl.SSLSocket` across multiple threads.
|