'Callback invoked when a length prefix greater than C{MAX_LENGTH} is
received.  The default implementation disconnects the transport.
Override this.
@param length: The length prefix which was received.
@type length: C{int}'

def lengthLimitExceeded(self, length):

    self.transport.loseConnection()
