submitWindowUpdate

Submits WINDOW_UPDATE frame.

The |flags| is currently ignored and should be FrameFlags.NONE.

If the |window_size_increment| is positive, the WINDOW_UPDATE with that value as window_size_increment is queued. If the |window_size_increment| is larger than the received bytes from the remote endpoint, the local window size is increased by that difference.

If the |window_size_increment| is negative, the local window size is decreased by -|window_size_increment|. If automatic WINDOW_UPDATE is enabled Options.setNoAutoWindowUpdate, and the library decided that the WINDOW_UPDATE should be submitted, then WINDOW_UPDATE is queued with the current received bytes count.

If the |window_size_increment| is 0, the function does nothing and returns 0.

This function returns 0 if it succeeds, or one of the following negative error codes:

ErrorCode.FLOW_CONTROL The local window size overflow or gets negative.

Meta