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

python 3.6 socketio sporadic ssl read: OSError 0 #767

Open
navneetgarggate6 opened this issue Sep 26, 2022 · 1 comment
Open

python 3.6 socketio sporadic ssl read: OSError 0 #767

navneetgarggate6 opened this issue Sep 26, 2022 · 1 comment

Comments

@navneetgarggate6
Copy link

navneetgarggate6 commented Sep 26, 2022

I am using python 3.6 and module version is 5.4.1.

I am getting following error regularly and also my server restart automatically after some time.

I also posted same question here as well.
miguelgrinberg/python-socketio#1048 (comment)

Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 476, in fire_timers
timer()
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/hubs/timer.py", line 59, in call
cb(*args, **kw)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/greenthread.py", line 221, in main
result = function(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/wsgi.py", line 815, in process_request
proto.init(conn_state, self)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/wsgi.py", line 346, in init
self.handle()
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/wsgi.py", line 379, in handle
self.handle_one_request()
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/wsgi.py", line 408, in handle_one_request
self.raw_requestline = self._read_request_line()
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/wsgi.py", line 391, in _read_request_line
return self.rfile.readline(self.server.url_length_limit)
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/green/ssl.py", line 253, in recv_into
return self.base_recv(nbytes, flags, into=True, buffer=buffer)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/green/ssl.py", line 268, in base_recv
read = self.read(nbytes, buffer)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/green/ssl.py", line 188, in read
super(GreenSSLSocket, self).read, *args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/eventlet/green/ssl.py", line 162, in _call_trampolining
return func(*a, **kw)
File "/usr/lib/python3.6/ssl.py", line 874, in read
return self._sslobj.read(len, buffer)
File "/usr/lib/python3.6/ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
OSError: [Errno 0] Error
(31576) accepted ('172.31.31.11', 48876)
wsgi exiting

@temoto
Copy link
Member

temoto commented Jan 18, 2023

Unfortunately, eventlet doesn't work well with python-socketio yet. This fix seems related #778 could you test it?

pip install https://github.com/SURFscz/eventlet/archive/f1902e7b3689419a7b4c19313b3bda2a3428805b.zip

@temoto temoto changed the title Project in python 3.6 python 3.6 socketio sporadic ssl read: OSError 0 Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants