streamWindowUpdateShouldSendPartialFrame() — netty Function Reference
Architecture documentation for the streamWindowUpdateShouldSendPartialFrame() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a96394e3_8d89_3135_04de_d053a4a33572["streamWindowUpdateShouldSendPartialFrame()"] f8fd7697_92d4_6455_4dd8_09a33ac81a6f["DefaultHttp2RemoteFlowControllerTest"] a96394e3_8d89_3135_04de_d053a4a33572 -->|defined in| f8fd7697_92d4_6455_4dd8_09a33ac81a6f 755c1b74_beca_bbf4_03dd_dc973ba061bd["exhaustStreamWindow()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| 755c1b74_beca_bbf4_03dd_dc973ba061bd 136071dd_c92e_5482_7cb2_c1ba0769c1ab["FakeFlowControlled()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| 136071dd_c92e_5482_7cb2_c1ba0769c1ab 85ffafbd_47aa_f4f5_fd02_71f26d692e10["sendData()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| 85ffafbd_47aa_f4f5_fd02_71f26d692e10 4d627b61_f0ea_0927_043f_7bfb246d71d1["assertNotWritten()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| 4d627b61_f0ea_0927_043f_7bfb246d71d1 947caffb_54ef_9984_108e_69119ef018d1["incrementWindowSize()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| 947caffb_54ef_9984_108e_69119ef018d1 d7bb96bf_47aa_9ae7_f5a1_7aaad102fb27["assertPartiallyWritten()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| d7bb96bf_47aa_9ae7_f5a1_7aaad102fb27 72f6527f_6737_5bc4_f643_b308fe4de273["window()"] a96394e3_8d89_3135_04de_d053a4a33572 -->|calls| 72f6527f_6737_5bc4_f643_b308fe4de273 style a96394e3_8d89_3135_04de_d053a4a33572 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 650–689
@Test
public void streamWindowUpdateShouldSendPartialFrame() throws Http2Exception {
// Set the stream window size to zero.
exhaustStreamWindow(STREAM_A);
verify(listener, times(1)).writabilityChanged(stream(STREAM_A));
verify(listener, never()).writabilityChanged(stream(STREAM_B));
verify(listener, never()).writabilityChanged(stream(STREAM_C));
verify(listener, never()).writabilityChanged(stream(STREAM_D));
assertFalse(controller.isWritable(stream(STREAM_A)));
assertTrue(controller.isWritable(stream(STREAM_B)));
assertTrue(controller.isWritable(stream(STREAM_C)));
assertTrue(controller.isWritable(stream(STREAM_D)));
reset(listener);
FakeFlowControlled data = new FakeFlowControlled(10);
sendData(STREAM_A, data);
controller.writePendingBytes();
data.assertNotWritten();
// Verify that a partial frame of 5 was sent.
incrementWindowSize(STREAM_A, 5);
verify(listener, never()).writabilityChanged(stream(STREAM_A));
verify(listener, never()).writabilityChanged(stream(STREAM_B));
verify(listener, never()).writabilityChanged(stream(STREAM_C));
verify(listener, never()).writabilityChanged(stream(STREAM_D));
assertFalse(controller.isWritable(stream(STREAM_A)));
assertTrue(controller.isWritable(stream(STREAM_B)));
assertTrue(controller.isWritable(stream(STREAM_C)));
assertTrue(controller.isWritable(stream(STREAM_D)));
reset(listener);
data.assertNotWritten();
controller.writePendingBytes();
data.assertPartiallyWritten(5);
assertEquals(DEFAULT_WINDOW_SIZE - 5, window(CONNECTION_STREAM_ID));
assertEquals(0, 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 streamWindowUpdateShouldSendPartialFrame() do?
streamWindowUpdateShouldSendPartialFrame() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is streamWindowUpdateShouldSendPartialFrame() defined?
streamWindowUpdateShouldSendPartialFrame() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 650.
What does streamWindowUpdateShouldSendPartialFrame() call?
streamWindowUpdateShouldSendPartialFrame() calls 7 function(s): FakeFlowControlled, assertNotWritten, assertPartiallyWritten, exhaustStreamWindow, incrementWindowSize, sendData, window.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free