`listening` should work, at least on the server object. But we already are in the `listening` callback here as specified in the [node documentation](http://nodejs.org/api/net.html#net_server_listen_handle_callback). As the event is triggered once, it's already too late.
So I suspect we don't have any problem here. Tell me if you are thinking of any other race condition.