code: @SuppressWarnings("SameParameterValue")
      private byte[] readResponseWithExpectedSize(InputStream is, int size, String description) throws IOException {
          byte[] result = receiveBytes(is);
          if (result.length != size) {
              logger.warn("Expected " + size + " bytes while reading " + description + " response, received " + result.length);
          }
          return result;
      }
docs: Receive an expected number of bytes from the player, logging a warning if we get a different number of them.
  
  @param is the input stream associated with the player metadata socket.
  @param size the number of bytes we expect to receive.
  @param description the type of response being processed, for use in the warning message.
  @return the bytes read.
  
  @throws IOException if there is a problem reading the response.