Home / Function/ failedOutboundStreamCreationThrowsAndClosesChannel() — netty Function Reference

failedOutboundStreamCreationThrowsAndClosesChannel() — netty Function Reference

Architecture documentation for the failedOutboundStreamCreationThrowsAndClosesChannel() function in Http2MultiplexTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f8cc0ae3_6c4c_8f36_9765_eac6cb789933["failedOutboundStreamCreationThrowsAndClosesChannel()"]
  4745ff96_ed57_3bd8_9861_4b786d0b6e09["Http2MultiplexTest"]
  f8cc0ae3_6c4c_8f36_9765_eac6cb789933 -->|defined in| 4745ff96_ed57_3bd8_9861_4b786d0b6e09
  b9b63893_76d6_8a34_cbb9_a71b8eeaf1c2["flush()"]
  f8cc0ae3_6c4c_8f36_9765_eac6cb789933 -->|calls| b9b63893_76d6_8a34_cbb9_a71b8eeaf1c2
  style f8cc0ae3_6c4c_8f36_9765_eac6cb789933 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java lines 944–975

    @Test
    public void failedOutboundStreamCreationThrowsAndClosesChannel() throws Exception {
        LastInboundHandler handler = new LastInboundHandler();
        Http2StreamChannel childChannel = newOutboundStream(handler);
        assertTrue(childChannel.isActive());

        Http2Headers headers = new DefaultHttp2Headers();
        when(frameWriter.writeHeaders(eqCodecCtx(), anyInt(),
               eq(headers), anyInt(), anyBoolean(),
               any(ChannelPromise.class))).thenAnswer(new Answer<ChannelFuture>() {
           @Override
           public ChannelFuture answer(InvocationOnMock invocationOnMock) {
               return ((ChannelPromise) invocationOnMock.getArgument(5)).setFailure(
                       new Http2NoMoreStreamIdsException());
            }
        });

        final ChannelFuture future = childChannel.writeAndFlush(new DefaultHttp2HeadersFrame(headers));
        parentChannel.flush();

        assertFalse(childChannel.isActive());
        assertFalse(childChannel.isOpen());

        handler.checkException();

        assertThrows(Http2NoMoreStreamIdsException.class, new Executable() {
            @Override
            public void execute() {
                future.syncUninterruptibly();
            }
        });
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does failedOutboundStreamCreationThrowsAndClosesChannel() do?
failedOutboundStreamCreationThrowsAndClosesChannel() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java.
Where is failedOutboundStreamCreationThrowsAndClosesChannel() defined?
failedOutboundStreamCreationThrowsAndClosesChannel() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java at line 944.
What does failedOutboundStreamCreationThrowsAndClosesChannel() call?
failedOutboundStreamCreationThrowsAndClosesChannel() calls 1 function(s): flush.

Analyze Your Own Codebase

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

Try Supermodel Free