code: def recvRtspReply(self):
      
      while True:
        reply = self.rtspSocket.recv(1024)
  
        if reply:
          self.parseRtspReply(reply)
  
        # Close the RTSP socket upon requesting Teardown
        if self.requestSent == self.TEARDOWN:
          self.rtspSocket.shutdown(socket.SHUT_RDWR)
          self.rtspSocket.close()
          break
docs: Receive RTSP reply from the server.