You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found a solid repro for this, but I get it from time to time when using an TLS/SSL enabled StreamServer.
Traceback (most recent call last):
File "/Users/<snip>/init.py", line 263, in handle
num_read = sock.recv_into(buffer, BUFFER_SIZE)
File "/Library/Python/2.7/site-packages/gevent/ssl.py", line 256, in recv_into
raise
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
I haven't found a solid repro for this, but I get it from time to time when using an TLS/SSL enabled StreamServer.
Traceback (most recent call last):
File "/Users/<snip>/init.py", line 263, in handle
num_read = sock.recv_into(buffer, BUFFER_SIZE)
File "/Library/Python/2.7/site-packages/gevent/ssl.py", line 256, in recv_into
raise
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
I'm guessing the reason is that the re-raise is done after sys.exc_clear() in ssl.py:
http://code.google.com/p/gevent/source/browse/gevent/ssl.py#268
What version of the gevent are you using?
0.13.7
On what operating system?
OSX 10.7.3
On what Python?
2.7.1
Please provide any additional information below.
Reported by johan.mjones.
earlier comments
Denis.Bilenko said, at 2012-05-07T21:14:15.000Z:
Indeed, we should not do exc_clear() before raise.
Denis.Bilenko said, at 2012-05-12T11:37:15.000Z:
Fixed in https://bitbucket.org/denis/gevent/changeset/af2e69bd3b2f
The text was updated successfully, but these errors were encountered: