

def clientConnectionMade(self, protocol):

    def success(reason):
        self.cache.connectionMadeForKey(self.key, protocol)
        self.finishedExtraWork = True
        return protocol

    def failed(reason):
        self.lostAsFailReason = reason
        protocol.transport.loseConnection()
        return reason
    maybeDeferred(self.extraWork, self).addCallbacks(success, failed)

dataset/ETHPy150Open twisted/vertex/vertex/conncache.py _CachingClientFactory.clientConnectionMade/VarMisuse@77/98 `protocol`->`self`