You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The new asyncio server_forever() implementation in 17.0 has broken compatibility with uvloop #1746
The improved serve_forever() introduced in #1745 relies on CPython's private _serving_forever_fut attribute, which breaks compatibility with uvloop, since it utilizes its own Cython-based Server implementation:
File "/home/dockeruser/.local/lib/python3.12/site-packages/websockets/asyncio/server.py", line 534, in serve_forever
if self.server._serving_forever_fut is not None: # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'uvloop.loop.Server' object has no attribute '_serving_forever_fut'
Activity
aaugustin commentedon Jul 30, 2026
Ah, I didn't see that one coming... I'll fix it.
aaugustin commentedon Jul 30, 2026
Fixed in eb3600c. I will release 17.0.1 with this fix
nowas soon as I fix another bug which I just discovered.aaugustin commentedon Jul 30, 2026
Thank you for letting me know!
aaugustin commentedon Jul 31, 2026
17.0.1 is on PyPI now.