class Protocol::HTTP2::PendingSettings

def acknowledge

def acknowledge
	if changes = @queue.shift
		@current.update(changes)
		
		return changes
	else
		raise ProtocolError, "Cannot acknowledge settings, no changes pending"
	end
end

def append(changes)

def append(changes)
	@queue << changes
	@pending.update(changes)
end

def enable_connect_protocol

def enable_connect_protocol
	@current.enable_connect_protocol
end

def enable_push

def enable_push
	@current.enable_push
end

def header_table_size

def header_table_size
	@current.header_table_size
end

def initial_window_size

def initial_window_size
	@current.initial_window_size
end

def initialize(current = Settings.new)

def initialize(current = Settings.new)
	@current = current
	@pending = current.dup
	
	@queue = []
end

def maximum_concurrent_streams

def maximum_concurrent_streams
	@current.maximum_concurrent_streams
end

def maximum_frame_size

def maximum_frame_size
	@current.maximum_frame_size
end

def maximum_header_list_size

def maximum_header_list_size
	@current.maximum_header_list_size
end