[issue33090] race condition between send and recv in _ssl with non-zero timeout

2020-10-23 Thread Christian Heimes
Christian Heimes added the comment: I'm turning this into a docs bug. -- assignee: christian.heimes -> docs@python components: +Documentation -macOS nosy: +docs@python stage: -> needs patch type: crash -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2020-10-23 Thread Christian Heimes
Christian Heimes added the comment: The demo script uses the same connection socket in two threads. Neither OpenSSL nor Python guarantee that a single SSLSocket object can be used by multiple threads. https://www.openssl.org/blog/blog/2017/02/21/threads/ contains more information about

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The script still fails on macOS 10.15 with python 3.9 (installed from python.org). Interestingly enough: - First run of the script worked without any problems - Subsequent runs failed with various errors: $ python3.9 t.py Got connection from ('127.0.0.1',

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2018-04-17 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker ___ ___ Python-bugs-list

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2018-03-16 Thread Robert Xiao
New submission from Robert Xiao : Environment: Several versions of Python (see below), macOS 10.12.6 The attached script creates an SSL echo server (fairly standard), connects to the server, and spawns a read and write thread. The write thread repeatedly shovels data into