Home / Function/ testSpdySessionHandlerPing() — netty Function Reference

testSpdySessionHandlerPing() — netty Function Reference

Architecture documentation for the testSpdySessionHandlerPing() function in SpdySessionHandlerTest.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  5af2c2b0_9290_90f6_dd32_d99b3f253301["testSpdySessionHandlerPing()"]
  8cf70e1a_42ea_1993_5d10_4e8bc2411532["SpdySessionHandlerTest"]
  5af2c2b0_9290_90f6_dd32_d99b3f253301 -->|defined in| 8cf70e1a_42ea_1993_5d10_4e8bc2411532
  00a1770a_e05e_2efd_77d3_9f294ba7d6f4["testSpdyClientSessionHandlerPing()"]
  00a1770a_e05e_2efd_77d3_9f294ba7d6f4 -->|calls| 5af2c2b0_9290_90f6_dd32_d99b3f253301
  f29e4eac_3066_b65f_4a40_21e6a9d7fa8b["testSpdyServerSessionHandlerPing()"]
  f29e4eac_3066_b65f_4a40_21e6a9d7fa8b -->|calls| 5af2c2b0_9290_90f6_dd32_d99b3f253301
  711f3e19_b210_9c43_500f_2d54a946afd4["EchoHandler()"]
  5af2c2b0_9290_90f6_dd32_d99b3f253301 -->|calls| 711f3e19_b210_9c43_500f_2d54a946afd4
  71c7c344_4289_0fdc_1d8c_ece5b453c384["assertPing()"]
  5af2c2b0_9290_90f6_dd32_d99b3f253301 -->|calls| 71c7c344_4289_0fdc_1d8c_ece5b453c384
  style 5af2c2b0_9290_90f6_dd32_d99b3f253301 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdySessionHandlerTest.java lines 213–237

    private static void testSpdySessionHandlerPing(SpdyVersion version, boolean server) {
        EmbeddedChannel sessionHandler = new EmbeddedChannel(
                new SpdySessionHandler(version, server), new EchoHandler(closeSignal, server));

        while (sessionHandler.readOutbound() != null) {
            continue;
        }

        int localStreamId = server ? 1 : 2;
        int remoteStreamId = server ? 2 : 1;

        SpdyPingFrame localPingFrame = new DefaultSpdyPingFrame(localStreamId);
        SpdyPingFrame remotePingFrame = new DefaultSpdyPingFrame(remoteStreamId);

        // Check if session handler returns identical local PINGs
        sessionHandler.writeInbound(localPingFrame);
        assertPing(sessionHandler.readOutbound(), localPingFrame.id());
        assertNull(sessionHandler.readOutbound());

        // Check if session handler ignores un-initiated remote PINGs
        sessionHandler.writeInbound(remotePingFrame);
        assertNull(sessionHandler.readOutbound());

        sessionHandler.finish();
    }

Domain

Subdomains

Frequently Asked Questions

What does testSpdySessionHandlerPing() do?
testSpdySessionHandlerPing() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdySessionHandlerTest.java.
Where is testSpdySessionHandlerPing() defined?
testSpdySessionHandlerPing() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdySessionHandlerTest.java at line 213.
What does testSpdySessionHandlerPing() call?
testSpdySessionHandlerPing() calls 2 function(s): EchoHandler, assertPing.
What calls testSpdySessionHandlerPing()?
testSpdySessionHandlerPing() is called by 2 function(s): testSpdyClientSessionHandlerPing, testSpdyServerSessionHandlerPing.

Analyze Your Own Codebase

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

Try Supermodel Free