Avoid race by using http.Server.listen callback.