Method: HTTP::Protocol::HTTP2::Connection#receive_window_update

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

#receive_window_update(frame) ⇒ Object



315
316
317
318
319
320
321
322
323
324
325
# File 'lib/http/protocol/http2/connection.rb', line 315

def receive_window_update(frame)
  if frame.connection?
    super
  elsif stream = @streams[frame.stream_id]
    stream.receive_window_update(frame)
  elsif deleted_stream? frame
    # ignore
  else
    raise ProtocolError, "Cannot update window of non-existant stream: #{frame.stream_id}"
  end
end