Ejemplo n.º 1
0
 def stop(self):
     """Stop all registered listeners."""
     for listener, slot in self.pool:
         self._info("Stopping listening on '%s:%d', service '%s'.",
                    listener.host, listener.port, listener.name)
         listener_stopped.send(self, listener=listener, slot=slot,
                               app=self.app)
         listener.stop()
Ejemplo n.º 2
0
 def stop(self):
     """Stop all registered listeners."""
     for listener, slot in self.pool:
         self._info("Stopping listening on '%s:%d', service '%s'.",
                    listener.host, listener.port, listener.name)
         listener_stopped.send(self,
                               listener=listener,
                               slot=slot,
                               app=self.app)
         listener.stop()
Ejemplo n.º 3
0
 def stop(self):
     """Stop all registered listeners."""
     slots = self.app.slots
     clients = self.processes.clients
     for listener in self.listeners:
         slot = slots[listener.name]
         self._info("Stopping listening on '%s:%d', service '%s'.",
                    listener.host, listener.port, listener.name)
         listener_stopped.send(self, listener=listener, slot=slot,
                               app=self.app)
         clients.spawn(lambda proxy: proxy.stop_acceptor(listener.name))
         listener.stop()
     listeners_stopped.send(self, app=self.app)
Ejemplo n.º 4
0
 def stop(self):
     """Stop all registered listeners."""
     slots = self.app.slots
     broker = self.processes.broker
     for listener in self.listeners:
         slot = slots[listener.name]
         self._info("Stopping listening on '%s:%d', service '%s'.",
                    listener.host, listener.port, listener.name)
         listener_stopped.send(self,
                               listener=listener,
                               slot=slot,
                               app=self.app)
         broker.spawn(lambda proxy: proxy.stop_acceptor(listener.name))
         listener.stop()
     listeners_stopped.send(self, app=self.app)