'Unregister a producer.
If TLS is enabled, the TLS connection handles this.'

def unregisterProducer(self):

    if self.TLS:
        self.protocol.unregisterProducer()
    else:
        FileDescriptor.unregisterProducer(self)
