initialWindowUpdateShouldAllowMoreFrames() — netty Function Reference
Architecture documentation for the initialWindowUpdateShouldAllowMoreFrames() function in DefaultHttp2LocalFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b039f836_1710_00f1_1aef_2e780ee02381["initialWindowUpdateShouldAllowMoreFrames()"] 99976e08_de48_4e06_40e5_5ee3655f2651["DefaultHttp2LocalFlowControllerTest"] b039f836_1710_00f1_1aef_2e780ee02381 -->|defined in| 99976e08_de48_4e06_40e5_5ee3655f2651 62113048_84a9_1cf9_75f0_0ef0f3788315["receiveFlowControlledFrame()"] b039f836_1710_00f1_1aef_2e780ee02381 -->|calls| 62113048_84a9_1cf9_75f0_0ef0f3788315 7909b4ee_a611_4e8b_f2d5_96e89a175713["window()"] b039f836_1710_00f1_1aef_2e780ee02381 -->|calls| 7909b4ee_a611_4e8b_f2d5_96e89a175713 5afc6fae_8360_072c_1a3a_5b5aa174554d["consumeBytes()"] b039f836_1710_00f1_1aef_2e780ee02381 -->|calls| 5afc6fae_8360_072c_1a3a_5b5aa174554d edb012e8_f760_5fb6_314e_77a6bfaf20b0["verifyWindowUpdateSent()"] b039f836_1710_00f1_1aef_2e780ee02381 -->|calls| edb012e8_f760_5fb6_314e_77a6bfaf20b0 style b039f836_1710_00f1_1aef_2e780ee02381 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java lines 224–250
@Test
public void initialWindowUpdateShouldAllowMoreFrames() throws Http2Exception {
// Send a frame that takes up the entire window.
int initialWindowSize = DEFAULT_WINDOW_SIZE;
receiveFlowControlledFrame(STREAM_ID, initialWindowSize, 0, false);
assertEquals(0, window(STREAM_ID));
assertEquals(0, window(CONNECTION_STREAM_ID));
consumeBytes(STREAM_ID, initialWindowSize);
assertEquals(initialWindowSize, window(STREAM_ID));
assertEquals(DEFAULT_WINDOW_SIZE, window(CONNECTION_STREAM_ID));
// Update the initial window size to allow another frame.
int newInitialWindowSize = 2 * initialWindowSize;
controller.initialWindowSize(newInitialWindowSize);
assertEquals(newInitialWindowSize, window(STREAM_ID));
assertEquals(DEFAULT_WINDOW_SIZE, window(CONNECTION_STREAM_ID));
// Clear any previous calls to the writer.
reset(frameWriter);
// Send the next frame and verify that the expected window updates were sent.
receiveFlowControlledFrame(STREAM_ID, initialWindowSize, 0, false);
assertTrue(consumeBytes(STREAM_ID, initialWindowSize));
int delta = newInitialWindowSize - initialWindowSize;
verifyWindowUpdateSent(STREAM_ID, delta);
verifyWindowUpdateSent(CONNECTION_STREAM_ID, delta);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does initialWindowUpdateShouldAllowMoreFrames() do?
initialWindowUpdateShouldAllowMoreFrames() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java.
Where is initialWindowUpdateShouldAllowMoreFrames() defined?
initialWindowUpdateShouldAllowMoreFrames() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java at line 224.
What does initialWindowUpdateShouldAllowMoreFrames() call?
initialWindowUpdateShouldAllowMoreFrames() calls 4 function(s): consumeBytes, receiveFlowControlledFrame, verifyWindowUpdateSent, window.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free