Home / Function/ windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() — netty Function Reference

windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() — netty Function Reference

Architecture documentation for the windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() function in DefaultHttp2LocalFlowControllerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6["windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed()"]
  99976e08_de48_4e06_40e5_5ee3655f2651["DefaultHttp2LocalFlowControllerTest"]
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 -->|defined in| 99976e08_de48_4e06_40e5_5ee3655f2651
  85225cb9_c138_e86d_cc82_c3d1e5f63b6e["setupChannelHandlerContext()"]
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 -->|calls| 85225cb9_c138_e86d_cc82_c3d1e5f63b6e
  62113048_84a9_1cf9_75f0_0ef0f3788315["receiveFlowControlledFrame()"]
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 -->|calls| 62113048_84a9_1cf9_75f0_0ef0f3788315
  0704ea53_57a1_5305_109e_c7f112548050["verifyWindowUpdateNotSent()"]
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 -->|calls| 0704ea53_57a1_5305_109e_c7f112548050
  edb012e8_f760_5fb6_314e_77a6bfaf20b0["verifyWindowUpdateSent()"]
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 -->|calls| edb012e8_f760_5fb6_314e_77a6bfaf20b0
  style d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java lines 193–209

    @Test
    public void windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() throws Http2Exception {
        int dataSize = (int) (DEFAULT_WINDOW_SIZE * DEFAULT_WINDOW_UPDATE_RATIO) + 1;

        setupChannelHandlerContext(true);

        receiveFlowControlledFrame(STREAM_ID, dataSize, 0, false);
        verifyWindowUpdateNotSent(CONNECTION_STREAM_ID);
        verifyWindowUpdateNotSent(STREAM_ID);

        connection.stream(STREAM_ID).close();

        verifyWindowUpdateSent(CONNECTION_STREAM_ID, dataSize);

        // Verify we saw one flush.
        verify(ctx).flush();
    }

Domain

Subdomains

Frequently Asked Questions

What does windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() do?
windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java.
Where is windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() defined?
windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java at line 193.
What does windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() call?
windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed() calls 4 function(s): receiveFlowControlledFrame, setupChannelHandlerContext, verifyWindowUpdateNotSent, verifyWindowUpdateSent.

Analyze Your Own Codebase

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

Try Supermodel Free