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)
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)
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)
def connectionLost(self, reason): WampCraServerProtocol.connectionLost(self, reason) if factory.getConnectionCount() == 0: cache.reset()
def connectionLost(self, reason): WampCraServerProtocol.connectionLost(self, reason) if factory.getConnectionCount() == 0: cache.reset()