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

No reconnection after WAN disconnection #328

Closed
bachya opened this issue Aug 2, 2019 · 2 comments
Closed

No reconnection after WAN disconnection #328

bachya opened this issue Aug 2, 2019 · 2 comments
Assignees
Labels

Comments

@bachya
Copy link

bachya commented Aug 2, 2019

I'm having an issue where uses of my package (which utilizes python-socketio) notice that after an abrupt WAN disconnection, python-socketio doesn't reconnect. This is the traceback they notice:

  File "/usr/local/lib/python3.7/site-packages/socketio/asyncio_client.py", line 102, in connect
    engineio_path=socketio_path)
  File "/usr/local/lib/python3.7/site-packages/engineio/asyncio_client.py", line 73, in connect
    url, headers, engineio_path)
  File "/usr/local/lib/python3.7/site-packages/engineio/asyncio_client.py", line 250, in _connect_websocket
    extra_headers=headers)
  File "/usr/local/lib/python3.7/site-packages/websockets/py35/client.py", line 12, in __await_impl__
    transport, protocol = await self._creating_connection
  File "uvloop/loop.pyx", line 1846, in create_connection
socket.gaierror: [Errno -3] Try again

Versions:

python-engineio                  3.8.2.post1
python-socketio                  4.2.0

This may not be a bug – it may be an error in my own understanding – but wanted to open an issue to get your advice. Thanks!

@miguelgrinberg
Copy link
Owner

@bachya Yeah, this is a connection error that I'm not catching. I expected the WebSocket connection errors would be exceptions from the websockets package, but it looks like for this particular condition they just allow this lower level error to bubble up.

@miguelgrinberg miguelgrinberg self-assigned this Aug 2, 2019
@bachya
Copy link
Author

bachya commented Aug 2, 2019

Thank you!

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

No branches or pull requests

2 participants