class Protocol::HTTP2::PingFrame

def read_payload(stream)

@raises [ProtocolError] If validation fails.
@parameter stream [IO] The stream to read from.
Read and validate the PING frame payload.
def read_payload(stream)
	super
	
	if @stream_id != 0
		raise ProtocolError, "Settings apply to connection only, but stream_id was given"
	end
	
	if @length != 8
		raise FrameSizeError, "Invalid frame length: #{@length} != 8!"
	end
end