Method: Protocol::HTTP2::LocalWindow#wanted

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

#wantedObject

Get the amount of window that should be reclaimed, considering desired capacity.



114
115
116
117
118
119
120
121
# File 'lib/protocol/http2/window.rb', line 114

def wanted
  if @desired
    # We must send an update which allows at least @desired bytes to be sent.
    (@desired - @capacity) + @used
  else
    super
  end
end