Wait, why isn't that just a bug that wait() doesn't know the associated
loop?
It seems the child watcher is only associated with the loop on
set_event_loop(), which in your example doesn't get called (and it
shouldn't need to be called).
I've reproduced your bug; please file a bug per Victor's
Hello,
I’m maintaining a library for building websocket servers (mainly). Before
shutting down, the server should perform a closing handshake on open
connections. I assume many other protocols with long-lived connections have
similar requirements.
The most natural solution would to inherit