Home / Function/ applyLocalSettings() — netty Function Reference

applyLocalSettings() — netty Function Reference

Architecture documentation for the applyLocalSettings() function in DefaultHttp2ConnectionDecoder.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  d255073a_061c_c1a7_3e47_5eba139b16a0["applyLocalSettings()"]
  0189a990_8f54_63f5_92fb_f168c031db1e["FrameReadListener"]
  d255073a_061c_c1a7_3e47_5eba139b16a0 -->|defined in| 0189a990_8f54_63f5_92fb_f168c031db1e
  e5e8d893_d71c_3912_5f16_c4fe70a744aa["onSettingsAckRead()"]
  e5e8d893_d71c_3912_5f16_c4fe70a744aa -->|calls| d255073a_061c_c1a7_3e47_5eba139b16a0
  495162e3_2f1d_1166_c93c_76dc9e177571["calculateMaxHeaderListSizeGoAway()"]
  d255073a_061c_c1a7_3e47_5eba139b16a0 -->|calls| 495162e3_2f1d_1166_c93c_76dc9e177571
  style d255073a_061c_c1a7_3e47_5eba139b16a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java lines 478–514

        private void applyLocalSettings(Http2Settings settings) throws Http2Exception {
            Boolean pushEnabled = settings.pushEnabled();
            final Http2FrameReader.Configuration config = frameReader.configuration();
            final Http2HeadersDecoder.Configuration headerConfig = config.headersConfiguration();
            final Http2FrameSizePolicy frameSizePolicy = config.frameSizePolicy();
            if (pushEnabled != null) {
                if (connection.isServer()) {
                    throw connectionError(PROTOCOL_ERROR, "Server sending SETTINGS frame with ENABLE_PUSH specified");
                }
                connection.local().allowPushTo(pushEnabled);
            }

            Long maxConcurrentStreams = settings.maxConcurrentStreams();
            if (maxConcurrentStreams != null) {
                connection.remote().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
            }

            Long headerTableSize = settings.headerTableSize();
            if (headerTableSize != null) {
                headerConfig.maxHeaderTableSize(headerTableSize);
            }

            Long maxHeaderListSize = settings.maxHeaderListSize();
            if (maxHeaderListSize != null) {
                headerConfig.maxHeaderListSize(maxHeaderListSize, calculateMaxHeaderListSizeGoAway(maxHeaderListSize));
            }

            Integer maxFrameSize = settings.maxFrameSize();
            if (maxFrameSize != null) {
                frameSizePolicy.maxFrameSize(maxFrameSize);
            }

            Integer initialWindowSize = settings.initialWindowSize();
            if (initialWindowSize != null) {
                flowController().initialWindowSize(initialWindowSize);
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does applyLocalSettings() do?
applyLocalSettings() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java.
Where is applyLocalSettings() defined?
applyLocalSettings() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java at line 478.
What does applyLocalSettings() call?
applyLocalSettings() calls 1 function(s): calculateMaxHeaderListSizeGoAway.
What calls applyLocalSettings()?
applyLocalSettings() is called by 1 function(s): onSettingsAckRead.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free