'Store the protocol and fire the connection deferred.'

def clientConnectionMade(self, protocol):

    self.protocolInstance = protocol
    (d, self.connectionMade) = (self.connectionMade, None)
    if (d is not None):
        d.callback(None)
