Method: HTTP::Protocol::HTTP2::Connection#send_goaway

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

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



144
145
146
147
148
149
150
151
# File 'lib/http/protocol/http2/connection.rb', line 144

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