Method: Protocol::HTTP2::Connection#send_goaway

Defined in:
lib/protocol/http2/connection.rb

#send_goaway(error_code = 0, message = "") ⇒ Object



141
142
143
144
145
146
147
148
# File 'lib/protocol/http2/connection.rb', line 141

def send_goaway(error_code = 0, message = "")
	frame = GoawayFrame.new
	frame.pack @remote_stream_id, error_code, message
	
	write_frame(frame)
	
	@state = :closed
end