'Toggle transport read state, then count down.'

def pauseResumeProducing(self, counter):

    self.transport.pauseProducing()
    self.transport.resumeProducing()
    if counter:
        self.factory.reactor.callLater(0, self.pauseResumeProducing, (counter - 1))
    else:
        self.factory.reactor.callLater(0, self.factory.ready.callback, self)
