Skip to content

http2: allow to control the connection window size

In order to increase performance, it may necessary to allow an HTTP/2 connection to update its own WINDOW_SIZE, it is necessary to nghttp2_session_set_local_window_size

Every stream, and the connection as a whole maintains a send window, which is the amount of data that the server is allowed to send on the stream/connection, but it was not possible to control the connection window.

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.

So, with the help of: session.setConnectionWindowSize(windowSize), the function invokes nghttp2_session_set_local_window_size is invoked with the stream[0]

Merge request reports

Loading