def METHOD_NAME(self, buffer=b''):
    # Max line length for PROXY protocol is 107, and we received 4 already.
    while b'\r\n' not in buffer:
        if len(buffer) > 107:
            raise Disconnect()
        data = self.request.recv(107)
        if not data:
            raise Disconnect()
        buffer += data
    return buffer