

def connectionLostForKey(self, key):
    '\n        Remove lost connection from cache.\n\n        @param key: key of connection that was lost\n        @type key: L{tuple} of L{IAddress} and C{extraHash}\n        '
    if (key in self.cachedConnections):
        del self.cachedConnections[key]
    if (self._shuttingDown and self._shuttingDown.get(key)):
        (d, self._shuttingDown[key]) = (self._shuttingDown[key], None)
        d.callback(None)

dataset/ETHPy150Open twisted/vertex/vertex/conncache.py ConnectionCache.connectionLostForKey/original