Method: HTTP::Protocol::HTTP2::Connection#receive_settings
- Defined in:
- lib/http/protocol/http2/connection.rb
#receive_settings(frame) ⇒ Object
221 222 223 224 225 226 227 228 229 230 |
# File 'lib/http/protocol/http2/connection.rb', line 221 def receive_settings(frame) if @state == :new # We transition to :open when we receive acknowledgement of first settings frame: open! if process_settings(frame) elsif @state != :closed process_settings(frame) else raise ProtocolError, "Cannot receive settings in state #{@state}" end end |