Method: Protocol::HTTP2::LocalWindow#limited?

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

#limited?Boolean

Check if the window is limited, considering desired capacity.

Returns:

  • (Boolean)


125
126
127
128
129
130
131
132
# File 'lib/protocol/http2/window.rb', line 125

def limited?
  if @desired
    # Do not send window updates until we are less than half the desired capacity:
    @available < (@desired / 2)
  else
    super
  end
end