'Drop the connection when a server response exceeds the maximum line
length (L{LineOnlyReceiver.MAX_LENGTH}).
@type buffer: L{bytes}
@param buffer: A received line which exceeds the maximum line length.'

def lineLengthExceeded(self, buffer):

    if (self._waiting is not None):
        (waiting, self._waiting) = (self._waiting, None)
        waiting.errback(LineTooLong())
    self.transport.loseConnection()
