def request_complete(self):
        """The request is complete if the separator is present and the
        number of bytes received equals the specified message length"""
        recv = self.incoming.split('\n',1)
        if len(recv)==1 or len(recv[1]) != int(recv[0]):
            return False
        self.msg_body = recv[1]
        return True
The request is complete if the separator is present and the
        number of bytes received equals the specified message length
recipes/Python/511453_generic_multi_protocol_asynchronous/recipe-511453.py