Files
deb-python-eventlet/tests/ssl_test.py
Jakub Stasiak 1d4ce40c1b ssl: Fix "TypeError: read() argument 2 must be read-write bytes-like object, not None"
The issue would manifest after performing the following steps on
Python 3.5:

* Create a plain socket without connecting to anything
* Wrap the plain socket in an SSL socket
* Call recv(n) on the SSL socket

This is the only place in the code where we actually assign
self._sslobj, I just modified the code to wrap the sslwrap result in
SSLObject like the standard library SSLSocket.connect does[1] since
Python 3.5[2].

[1] 9ec0aa138b/Lib/ssl.py (L1008)
[2] http://bugs.python.org/issue21965
2016-09-26 15:09:41 +01:00

11 KiB