connectionWindowUpdateShouldSendFrame() — netty Function Reference
Architecture documentation for the connectionWindowUpdateShouldSendFrame() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d2dab0f5_680b_0871_7ef7_ff0bb34b4834["connectionWindowUpdateShouldSendFrame()"] f8fd7697_92d4_6455_4dd8_09a33ac81a6f["DefaultHttp2RemoteFlowControllerTest"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|defined in| f8fd7697_92d4_6455_4dd8_09a33ac81a6f 755c1b74_beca_bbf4_03dd_dc973ba061bd["exhaustStreamWindow()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 755c1b74_beca_bbf4_03dd_dc973ba061bd 90444244_2b60_c843_559a_6c55d7a4e9ac["assertWritabilityChanged()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 136071dd_c92e_5482_7cb2_c1ba0769c1ab["FakeFlowControlled()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 136071dd_c92e_5482_7cb2_c1ba0769c1ab 85ffafbd_47aa_f4f5_fd02_71f26d692e10["sendData()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 85ffafbd_47aa_f4f5_fd02_71f26d692e10 4d627b61_f0ea_0927_043f_7bfb246d71d1["assertNotWritten()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 4d627b61_f0ea_0927_043f_7bfb246d71d1 947caffb_54ef_9984_108e_69119ef018d1["incrementWindowSize()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 947caffb_54ef_9984_108e_69119ef018d1 da0712d5_2b96_e340_6c7a_17114adb9efc["assertFullyWritten()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| da0712d5_2b96_e340_6c7a_17114adb9efc 72f6527f_6737_5bc4_f643_b308fe4de273["window()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 72f6527f_6737_5bc4_f643_b308fe4de273 style d2dab0f5_680b_0871_7ef7_ff0bb34b4834 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 543–571
@Test
public void connectionWindowUpdateShouldSendFrame() throws Http2Exception {
// Set the connection window size to zero.
exhaustStreamWindow(CONNECTION_STREAM_ID);
assertWritabilityChanged(1, false);
reset(listener);
FakeFlowControlled data = new FakeFlowControlled(10);
sendData(STREAM_A, data);
controller.writePendingBytes();
data.assertNotWritten();
assertWritabilityChanged(0, false);
reset(listener);
// Verify that the entire frame was sent.
incrementWindowSize(CONNECTION_STREAM_ID, 10);
assertWritabilityChanged(0, false);
reset(listener);
data.assertNotWritten();
controller.writePendingBytes();
data.assertFullyWritten();
assertWritabilityChanged(0, false);
assertEquals(0, window(CONNECTION_STREAM_ID));
assertEquals(DEFAULT_WINDOW_SIZE - 10, window(STREAM_A));
assertEquals(DEFAULT_WINDOW_SIZE, window(STREAM_B));
assertEquals(DEFAULT_WINDOW_SIZE, window(STREAM_C));
assertEquals(DEFAULT_WINDOW_SIZE, window(STREAM_D));
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does connectionWindowUpdateShouldSendFrame() do?
connectionWindowUpdateShouldSendFrame() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is connectionWindowUpdateShouldSendFrame() defined?
connectionWindowUpdateShouldSendFrame() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 543.
What does connectionWindowUpdateShouldSendFrame() call?
connectionWindowUpdateShouldSendFrame() calls 8 function(s): FakeFlowControlled, assertFullyWritten, assertNotWritten, assertWritabilityChanged, exhaustStreamWindow, incrementWindowSize, sendData, window.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free