crossbario / crossbario/autobahn-python
connection reset error in asyncio/uvloop
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 768
- PR merge metrics
- No merged PRs in 30d
Description
Stack trace:
019-10-19 00:07:57.801306+05:30 - ERROR - Exception in callback <bound method WebSocketAdapterProtocol.connection_lost of <main.ClientProtocol object at 0x7f9d7516eb38>>
handle:
Traceback (most recent call last):
File "uvloop/cbhandles.pyx", line 64, in uvloop.loop.Handle._run
File "/home/ubuntu/streamer/venv3/lib/python3.7/site-packages/autobahn/asyncio/websocket.py", line 100, in connection_lost
self._connectionLost(exc)
File "/home/ubuntu/streamer/venv3/lib/python3.7/site-packages/autobahn/websocket/protocol.py", line 3365, in _connectionLost
WebSocketProtocol._connectionLost(self, reason)
File "/home/ubuntu/streamer/venv3/lib/python3.7/site-packages/autobahn/websocket/protocol.py", line 1069, in _connectionLost
if not self.factory.isServer and self.serverConnectionDropTimeoutCall is not None:
AttributeError: 'ClientProtocol' object has no attribute 'serverConnectionDropTimeoutCall'
2019-10-19 00:07:57.801934+05:30 - ERROR - Task exception was never retrieved
future: <Task finished coro=<<iterable_coroutine without name>()> exception=ConnectionResetError()>
Traceback (most recent call last):
File "uvloop/loop.pyx", line 1945, in create_connection
File "uvloop/loop.pyx", line 1942, in uvloop.loop.Loop.create_connection
File "uvloop/sslproto.pyx", line 499, in uvloop.loop.SSLProtocol._on_handshake_complete
ConnectionResetError
Versions:
autobahn - 19.1.1
uvloop - 0.12.0
Any help appreciated
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the traceback at autobahn/asyncio/websocket.py:100 and autobahn/websocket/protocol.py:1069, then reproduce the failure using the reported Autobahn 19.1.1 and uvloop 0.12.0 versions. The issue does not name a repository file, test, or expected behavior; it is resolved only once the connection reset and missing-attribute error have an identified, reproducible outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100