-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
gevent errors #2
Comments
If you share some of the logs I'll take a look. |
Here are 2 typical errors: Traceback (most recent call last): File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Proxy_Negotiate-1.0.0-py3.7.egg/proxy_neg
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gevent/_socketcommon.py", line 657, in recv
ConnectionResetError: [Errno 54] Connection reset by peer 2021-10-07T21:37:22Z <Greenlet at 0x7f9942345908: forward(<gevent._socket3.socket [closed] at 0x7f994235e388, <gevent._socket3.socket at 0x7f99423e09a0 object, )> failed with ConnectionResetError Traceback (most recent call last): File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Proxy_Negotiate-1.0.0-py3.7.egg/proxy_negotiate.py", line 23, in forward
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gevent/_socketcommon.py", line 699, in sendall
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gevent/_socketcommon.py", line 396, in _sendall
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gevent/_socketcommon.py", line 569, in getsockopt
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gevent/_socket3.py", line 55, in _dummy
OSError: [Errno 9] Bad file descriptor 2021-10-07T21:37:22Z <Greenlet at 0x7f99423456d8: forward(<gevent._socket3.socket [closed] at 0x7f99423e09a0, <gevent._socket3.socket [closed] at 0x7f994235e388)> failed with OSError |
Ah yes, I haven't put any try/except blocks around the send and receive methods so whenever this is a disconnect or dropped connection it'll stack trace. So safe to ignore. |
Ok. It be nice to not have them. As you may overlook real errors. Thank you |
Agreed. Going to wrap the send and receive parts in try-except blocks just to catch the Connection Reset and file descriptor errors that occur when the connection closes. |
Using this version I see a lot of gevent socket errors. Is this a gevent issue ?
I used before version 0.2.2 which did not have these errors.
Markus
The text was updated successfully, but these errors were encountered: