'Use the reactor defined by the factory, rather than the default global
reactor, to simplify testing (by allowing an alternate implementation
to be supplied by tests).'

@property
def clock(self):

    return self.transport.factory.reactor
