code: def read_end_of_message(self):
          
          read = self._file.read
          last = read(1)
          current = read(1)
          while last != b'' and current != b'' and not \
                  (last == b'\r' and current == b'\n'):
              last = current
              current = read(1)
docs: Read the b"\\r\\n" at the end of the message.