Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_017_ssl_zeroreturnerror raises SSLEOFError on Python 3.10 #739

Open
foutrelis opened this issue Dec 9, 2021 · 1 comment · May be fixed by #787
Open

test_017_ssl_zeroreturnerror raises SSLEOFError on Python 3.10 #739

foutrelis opened this issue Dec 9, 2021 · 1 comment · May be fixed by #787

Comments

@foutrelis
Copy link

First noticed in #715 (comment) -- thought I'd file an issue for it.

This and #730 are the only issues failing for us on Arch Linux with Python 3.10.

Traceback (most recent call last):
  File "/home/foutrelis/desktop/python-eventlet/trunk/src/eventlet-0.33.0/tests/wsgi_test.py", line 566, in server
    serv.process_request([addr, client_socket, wsgi.STATE_IDLE])
  File "/home/foutrelis/desktop/python-eventlet/trunk/src/eventlet-0.33.0/eventlet/wsgi.py", line 837, in process_request
    proto.__init__(conn_state, self)
  File "/home/foutrelis/desktop/python-eventlet/trunk/src/eventlet-0.33.0/eventlet/wsgi.py", line 352, in __init__
    self.finish()
  File "/home/foutrelis/desktop/python-eventlet/trunk/src/eventlet-0.33.0/eventlet/wsgi.py", line 751, in finish
    BaseHTTPServer.BaseHTTPRequestHandler.finish(self)
  File "/usr/lib/python3.10/socketserver.py", line 811, in finish
    self.wfile.close()
  File "/usr/lib/python3.10/socket.py", line 723, in write
    return self._sock.send(b)
  File "/home/foutrelis/desktop/python-eventlet/trunk/src/eventlet-0.33.0/eventlet/green/ssl.py", line 194, in send
    return self._call_trampolining(
  File "/home/foutrelis/desktop/python-eventlet/trunk/src/eventlet-0.33.0/eventlet/green/ssl.py", line 162, in _call_trampolining
    return func(*a, **kw)
  File "/usr/lib/python3.10/ssl.py", line 1205, in send
    return self._sslobj.write(data)
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2384)
temoto added a commit that referenced this issue Jan 22, 2023
fixes #739

plus small cleanup of redundant lines in wsgi_test
@doko42
Copy link

doko42 commented May 30, 2023

I also see this with Python 3.11.3, but not with 3.11.2. Applying the patch from #787 doesn't make a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants