Skip to content

http2: allow setting the local window size of a session

Add http2session.setLocalWindowSize(windowSize) API

Allow to control the connection window size by setting local window size (local endpoints's window size) to the given window_size.

To increase window size, this function may submit WINDOW_UPDATE frame to transmission queue.

Pay attention, this function takes the absolute value of window size to set, rather than the delta, the delta is computed by the update operation.

This is a follow-up work of stalled #26962

Fixes: #31084 (closed) Refs: #26962

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading