submitSettings

@function

Stores local settings and submits SETTINGS frame. The |iva| is the pointer to the array of Setting. The |iv.length| indicates the number of settings.

This function does not take ownership of the |iva|. This function copies all the elements in the |iva|.

While updating individual stream's local window size, if the window size becomes strictly larger than max_WINDOW_SIZE, RST_STREAM is issued against such a stream.

SETTINGS with FrameFlags.ACK is automatically submitted by the library and application could not send it at its will.

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

ErrorCode.INVALID_ARGUMENT The |iv| contains invalid value (e.g., initial window size strictly greater than (1 << 31) - 1. ErrorCode.TOO_MANY_INFLIGHT_SETTINGS There is already another in-flight SETTINGS. Note that the current implementation only allows 1 in-flight SETTINGS frame without ACK flag set. ErrorCode.NOMEM Out of memory.

submitSettings

Meta