python-trio / trio-websocket

WebSocket client and server implementation for Python Trio
MIT License
70 stars 26 forks source link

server listen() should support the nursery start protocol #8

Closed belm0 closed 6 years ago

belm0 commented 6 years ago

so that we can ensure server is ready to receive connections before proceeding

https://trio.readthedocs.io/en/latest/reference-core.html#trio.The%20nursery%20interface.start

Also, listen() should not catch (and suppress) KeyboardInterrupt. It's to be done at top level of app.