'Possibly pause a producer, if there is one and the send buffer is full.'

def _maybePauseProducer(self):

    if ((self.producer is not None) and self.streamingProducer):
        if self._isSendBufferFull():
            self.producerPaused = True
            self.producer.pauseProducing()
