Aymeric Augustin
Aymeric Augustin
Superseded by #1500.
This behavior is inherited from [create_server](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.create_server).
Marking as wontfix. I am willing revisit if [create_server](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.create_server) gains this functionality.
It's quite new and hasn't received as much real-world usage as the legacy implementation. Maybe I'll bring it to feature parity eventually. At this time, I'm prioritizing #1332.
Thank for you the fix — indeed close() isn't a coroutine: https://github.com/python-websockets/websockets/blob/e217458ef8b692e45ca6f66c5aeb7fad0aee97ee/src/websockets/legacy/server.py#L724 I'm going to check how I introduced this mistake and merge the fix.
Hello, sorry for getting to your question so late — I was unable to find time for this project during the first half of the year. Your question is half...
On thing that could help: if you connect to port 0, the OS will allocate a random available port. This can help isolating tests from one another. Then you need...
Any chance this is the reason? https://websockets.readthedocs.io/en/stable/faq/misc.html#why-do-i-get-the-error-module-websockets-has-no-attribute
If so, I'll update the FAQ to cover this case too.
No answer in 4 months -> closing.