Ejemplo n.º 1
0
   def connectionLost(self, reason):
      """
      Client disconnected. Update stats.
      """
      WampCraServerProtocol.connectionLost(self, reason)
      self.factory.onConnectionCountChanged()

      self._cbSession['lost'] = utcnow()

      self.factory.dispatch("http://analytics.tavendo.de#leave", self._cbSession)
Ejemplo n.º 2
0
    def connectionLost(self, reason):
        """
        Called by Twisted when established TCP connection from client was lost.

        Call the factory to decrement the connection count and start a reaper if
        necessary.
        """
        try:
            self.factory.connection_lost()
        except AttributeError:
            pass
        WampCraServerProtocol.connectionLost(self, reason)
Ejemplo n.º 3
0
    def connectionLost(self, reason):
        """
        Called by Twisted when established TCP connection from client was lost.

        Call the factory to decrement the connection count and start a reaper if
        necessary.
        """
        try:
            self.factory.connection_lost()
        except AttributeError:
            pass
        WampCraServerProtocol.connectionLost(self, reason)
Ejemplo n.º 4
0
 def connectionLost(self, reason):
     WampCraServerProtocol.connectionLost(self, reason)
     if factory.getConnectionCount() == 0:
         cache.reset()
Ejemplo n.º 5
0
 def connectionLost(self, reason):
     WampCraServerProtocol.connectionLost(self, reason)
     if factory.getConnectionCount() == 0:
         cache.reset()