OptionFlags

Configuration options

Values

ValueMeaning
NO_AUTO_WINDOW_UPDATE1

This option prevents the library from sending WINDOW_UPDATE for a connection automatically. If this option is set to nonzero, the library won't send WINDOW_UPDATE for DATA until application calls Session.consume to indicate the amount of consumed DATA. By default, this option is set to zero.

PEER_MAX_CONCURRENT_STREAMS1 << 1

This option sets the Setting.MAX_CONCURRENT_STREAMS value of remote endpoint as if it is received in SETTINGS frame. Without specifying this option, before the local endpoint receives Setting.MAX_CONCURRENT_STREAMS in SETTINGS frame from remote endpoint, Setting.MAX_CONCURRENT_STREAMS is unlimited. This may cause problem if local endpoint submits lots of requests initially and sending them at once to the remote peer may lead to the rejection of some requests. Specifying this option to the sensible value, say 100, may avoid this kind of issue. This value will be overwritten if the local endpoint receives Setting.MAX_CONCURRENT_STREAMS from the remote endpoint.

RECV_CLIENT_PREFACE1 << 2
NO_HTTP_MESSAGING1 << 3

Meta